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