Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # $OpenBSD: Makefile,v 1.15 2017/05/04 22:03:30 espie Exp $
  2. BROKEN-hppa = ./src/x/xdga2s.s:25: Error: symbol .text is already defined
  3. COMMENT = game programming library for C/C++ developers
  4. V = 4.2.3
  5. DISTNAME = allegro-$V
  6. REVISION = 4
  7. CATEGORIES = games devel multimedia
  8. SHARED_LIBS = alleg 1.0 # 4.2
  9. HOMEPAGE = http://liballeg.org/
  10. MASTER_SITES = http://download.gna.org/allegro/allegro/$V/ \
  11. ${MASTER_SITE_SOURCEFORGE:=alleg/}
  12. # readme.txt: "You may use, modify, redistribute, and generally hack it about
  13. # in any way you like, and you do not have to give us anything in return."
  14. PERMIT_PACKAGE_CDROM = Yes
  15. USE_GMAKE = Yes
  16. MAKE_FILE = makefile
  17. ALL_TARGET = default
  18. CONFIGURE_STYLE = autoconf
  19. AUTOCONF_VERSION = 2.61
  20. SUBST_VARS = V
  21. WANTLIB = X11 Xcursor Xext Xpm Xxf86dga Xxf86vm c m \
  22. sndio pthread
  23. CONFIGURE_ARGS = --enable-artsdigi=no \
  24. --enable-esddigi=no \
  25. --enable-jackdigi=no \
  26. --enable-ossdigi=no \
  27. --enable-ossmidi=no \
  28. --enable-modules=no \
  29. --with-x
  30. # XXX work around bogus configure entry with clang
  31. CONFIGURE_ENV = allegro_cv_support_include_prefix=yes
  32. MAKE_ENV += shared_major_minor=${LIBalleg_VERSION}
  33. NO_TEST = Yes
  34. CFLAGS += -fgnu89-inline
  35. post-extract:
  36. cp ${FILESDIR}/sndio.c ${WRKSRC}/src/unix
  37. post-install:
  38. cd ${WRKSRC} && ${MAKE_PROGRAM} install-man
  39. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/allegro
  40. rm -f ${WRKSRC}/docs/html/build/tmpfile.txt
  41. cd ${WRKSRC}/docs/html && pax -rw . ${PREFIX}/share/doc/allegro
  42. .include <bsd.port.mk>