1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Add staging support

- Convert to new LIB_DEPENDS format
- Use options helpers
This commit is contained in:
Pawel Pekala 2014-04-09 12:09:26 +00:00
parent 593af10bab
commit 5c4152d661
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350680

View File

@ -11,13 +11,10 @@ COMMENT= Frontend for AdvanceMAME, MAME, MESS, RAINE
LICENSE= GPLv2 LICENSE= GPLv2
LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2 LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2
OPTIONS_DEFINE= FREETYPE DOCS
OPTIONS_DEFAULT=FREETYPE
USE_SDL= sdl USE_SDL= sdl
USE_GMAKE= yes USES= gmake
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-asm --disable-svgalib --disable-fb \ CONFIGURE_ARGS= --disable-asm --disable-svgalib --disable-fb \
--disable-alsa --enable-oss --disable-slang \ --disable-alsa --enable-oss --disable-slang \
@ -26,18 +23,14 @@ CONFIGURE_ARGS= --disable-asm --disable-svgalib --disable-fb \
CFLAGS+= -idirafter ${LOCALBASE}/include CFLAGS+= -idirafter ${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib LDFLAGS+= -L${LOCALBASE}/lib
MAN1= advmenu.1
PORTDOCS= * PORTDOCS= *
PLIST_FILES= bin/advmenu PLIST_FILES= bin/advmenu man/man1/advmenu.1.gz
NO_STAGE= yes OPTIONS_DEFINE= FREETYPE DOCS
.include <bsd.port.options.mk> OPTIONS_DEFAULT=FREETYPE
.if ${PORT_OPTIONS:MFREETYPE} FREETYPE_CONFIGURE_ENABLE= freetype
LIB_DEPENDS+= freetype:${PORTSDIR}/print/freetype2 FREETYPE_LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
.else
CONFIGURE_ARGS+=--disable-freetype
.endif
post-patch: post-patch:
@${REINPLACE_CMD} -e \ @${REINPLACE_CMD} -e \
@ -50,14 +43,12 @@ post-patch:
/WHOLE_LDFLAGS/s|-s||' ${WRKSRC}/advance/advance.mak /WHOLE_LDFLAGS/s|-s||' ${WRKSRC}/advance/advance.mak
do-install: do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} advmenu ${PREFIX}/bin) (cd ${WRKSRC} && ${INSTALL_PROGRAM} advmenu ${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC}/doc && ${INSTALL_MAN} advmenu.1 ${MANPREFIX}/man/man1) (cd ${WRKSRC}/doc && ${INSTALL_MAN} advmenu.1 \
.if ${PORT_OPTIONS:MDOCS} ${STAGEDIR}${MANPREFIX}/man/man1)
@${MKDIR} ${DOCSDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in HISTORY README RELEASE (cd ${WRKSRC} && ${INSTALL_DATA} HISTORY README RELEASE \
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR}) ${STAGEDIR}${DOCSDIR})
.endfor (cd ${WRKSRC}/doc && ${INSTALL_DATA} advmenu.[ht]* ${STAGEDIR}${DOCSDIR})
(cd ${WRKSRC}/doc && ${INSTALL_DATA} advmenu.[ht]* ${DOCSDIR})
.endif
.include <bsd.port.mk> .include <bsd.port.mk>