aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-04-09 20:20:08 +0800
committerpawel <pawel@FreeBSD.org>2014-04-09 20:20:08 +0800
commitaa6b0757d1e360ac57bfd70df5dc8ee3a0cd5d46 (patch)
tree6c343ec7b3f2f319f53ae74171cf7a225cd3a15c /emulators
parentdf4af618993dee818f69c72acf6259547673c2da (diff)
downloadfreebsd-ports-gnome-aa6b0757d1e360ac57bfd70df5dc8ee3a0cd5d46.tar.gz
freebsd-ports-gnome-aa6b0757d1e360ac57bfd70df5dc8ee3a0cd5d46.tar.zst
freebsd-ports-gnome-aa6b0757d1e360ac57bfd70df5dc8ee3a0cd5d46.zip
- Add staging support
- Convert to new LIB_DEPENDS format - Use options helpers
Diffstat (limited to 'emulators')
-rw-r--r--emulators/advancemess/Makefile32
-rw-r--r--emulators/advancemess/pkg-plist1
2 files changed, 11 insertions, 22 deletions
diff --git a/emulators/advancemess/Makefile b/emulators/advancemess/Makefile
index b232db62cf72..3201e3b1ab75 100644
--- a/emulators/advancemess/Makefile
+++ b/emulators/advancemess/Makefile
@@ -10,10 +10,10 @@ MASTER_SITES= SF/advancemame/${PORTNAME}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= SDL MESS port with advanced TV and monitor video support
-LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
+LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2
USE_GL= yes
-USE_GMAKE= yes
+USES= gmake
USE_SDL= sdl
GNU_CONFIGURE= yes
LDFLAGS+= -L${LOCALBASE}/lib
@@ -22,33 +22,21 @@ CFLAGS+= -idirafter ${LOCALBASE}/include
OPTIONS_DEFINE= FREETYPE SLANG
SLANG_DESC= Enable sLang support (for video driver)
-MAN1= advmess.1
+FREETYPE_CONFIGURE_ENABLE= freetype
+FREETYPE_LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
+
+SLANG_CONFIGURE_ENABLE= slang
+SLANG_LIB_DEPENDS= libslang.so:${PORTSDIR}/devel/libslang2
-NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
.endif
-.if ${PORT_OPTIONS:MFREETYPE}
-LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
-.else
-CONFIGURE_ARGS+=--disable-freetype
-.endif
-
-.if ${PORT_OPTIONS:MSLANG}
-LIB_DEPENDS+= slang.2:${PORTSDIR}/devel/libslang2
-.else
-CONFIGURE_ARGS+=--disable-slang
-.endif
-
post-patch:
- @${REINPLACE_CMD} -e '/pkgdocdir/d' ${WRKSRC}/advance/advance.mak
-
-post-install:
- @${ECHO_CMD}
- @${CAT} ${PKGMESSAGE}
- @${ECHO_CMD}
+ @${REINPLACE_CMD} -E -e '/pkgdocdir/d' \
+ -e 's,(bin|man|pkg)dir),DESTDIR)$$(&,' \
+ ${WRKSRC}/advance/advance.mak
.include <bsd.port.post.mk>
diff --git a/emulators/advancemess/pkg-plist b/emulators/advancemess/pkg-plist
index 1e2a6b427a06..98df4a364ce7 100644
--- a/emulators/advancemess/pkg-plist
+++ b/emulators/advancemess/pkg-plist
@@ -1,5 +1,6 @@
@exec for i in artwork crc image rom sample; do mkdir -p %D/%%DATADIR%%/${i}; done
bin/advmess
+man/man1/advmess.1.gz
%%DATADIR%%/sysinfo.dat
@dirrm %%DATADIR%%/sample
@dirrm %%DATADIR%%/rom