diff options
author | ijliao <ijliao@FreeBSD.org> | 2002-11-07 00:51:46 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2002-11-07 00:51:46 +0800 |
commit | c0526c7060c20dbe5e9890755beb1014eb108ba8 (patch) | |
tree | d6157bf47de003bb3ac645e864540b3ac0114a65 /devel/allegro-devel/Makefile | |
parent | 6d7227c759b682a1b39110b513a49ccc60fd68e3 (diff) | |
download | freebsd-ports-graphics-c0526c7060c20dbe5e9890755beb1014eb108ba8.tar.gz freebsd-ports-graphics-c0526c7060c20dbe5e9890755beb1014eb108ba8.tar.zst freebsd-ports-graphics-c0526c7060c20dbe5e9890755beb1014eb108ba8.zip |
- Fix LIB_DEPENDS
- Support USE_GNONENG
- Fix pkg-plist
PR: 44964
Submitted by: Ports Fury
Diffstat (limited to 'devel/allegro-devel/Makefile')
-rw-r--r-- | devel/allegro-devel/Makefile | 58 |
1 files changed, 33 insertions, 25 deletions
diff --git a/devel/allegro-devel/Makefile b/devel/allegro-devel/Makefile index 75e109d8b1f..fbe7c7280cc 100644 --- a/devel/allegro-devel/Makefile +++ b/devel/allegro-devel/Makefile @@ -7,49 +7,57 @@ PORTNAME= allegro PORTVERSION= 4.0.2 -PORTREVISION= 0 +PORTREVISION= 1 +PORTCOMMENT= A cross-platform library for games and multimedia programming CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= alleg MAINTAINER= ports@FreeBSD.org -USE_AUTOCONF= yes +USE_XLIB= yes +USE_GNOMENG= yes +WANT_GNOME= yes +USE_REINPLACE= yes USE_GMAKE= yes +USE_AUTOCONF_VER= 213 +CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} -DHAVE_LIBPTHREAD" \ + LDFLAGS="${PTHREAD_LIBS}" +CONFIGURE_ARGS= --enable-vga=no MAKEFILE= makefile INSTALLS_SHLIB= yes -.if !defined (WITHOUT_DEVEL) -INSTALL_TARGET= full-install -PLIST_SUB+= FULL="" +SHLIB_VER= 4 +PLIST_SUB= SHLIB_VER="${SHLIB_VER}" + +.include <bsd.port.pre.mk> + +.if ${HAVE_GNOME:Mesound}!="" +USE_GNOME+= esound +PKGNAMESUFFIX= -esound +PLIST_SUB+= ESOUND="" .else -INSTALL_TARGET= mini-install -PLIST_SUB+= FULL="@comment " +CONFIGURE_ARGS+= --enable-esddigi=no +PLIST_SUB+= ESOUND="@comment " .endif -CONFIGURE_ARGS+= --enable-vga=no - -.if !defined (WITHOUT_MAN) -INSTALL_TARGET+= install-man +.if defined(WITHOUT_DEVEL) +INSTALL_TARGET= mini-install install-man install-info +PLIST_SUB+= FULL="@comment " +.else +INSTALL_TARGET= full-install install-man install-info +PLIST_SUB+= FULL="" .endif -pre-build: - cd ${WRKSRC} && ${GMAKE} depend +post-patch: + @${REINPLACE_CMD} -e \ + 's|${PORTVERSION}|${SHLIB_VER}|g' ${WRKSRC}/makefile.ver post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} - ${CP} ${WRKSRC}/docs/html/* ${DOCSDIR} -.endif - @${RM} -f ${LOCALBASE}/lib/liballeg.so.4.0 - @${MV} ${LOCALBASE}/lib/liballeg-${PORTVERSION}.so \ - ${LOCALBASE}/lib/liballeg.so.4 - @${LN} -fs ${LOCALBASE}/lib/liballeg.so.4 ${LOCALBASE}/lib/liballeg.so - @${MV} ${LOCALBASE}/lib/liballeg_unsharable.a \ - ${LOCALBASE}/lib/liballeg.a -.if !defined (WITHOUT_MAN) - @(cd ${WRKSRC}/docs/man ; ${FIND} *.3 | ${SED} "s|^|man/man3/|" \ - >> ${TMPPLIST}) + ${INSTALL_DATA} ${WRKSRC}/docs/html/*.html ${DOCSDIR} .endif -.include <bsd.port.mk> +.include "Makefile.man" +.include <bsd.port.post.mk> |