mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
d4041784dc
Approved by: portmgr (bdrewery)
68 lines
1.7 KiB
Makefile
68 lines
1.7 KiB
Makefile
# Created by: Alexander Langer <alex@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tux_aqfh
|
|
PORTVERSION= 1.0.14
|
|
PORTREVISION= 8
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/tuxaqfh/tuxaqfh/${PORTVERSION}-classic \
|
|
SF/nemysisfreebsdp/:icons
|
|
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
|
|
${PORTNAME}.png:icons
|
|
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= nemysis@gmx.ch
|
|
COMMENT= Tuxedo The Penguin: A Quest for Herring
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib
|
|
|
|
USE_GL= glut
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-plib=${LOCALBASE}
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lusbhid ${PTHREAD_LIBS}
|
|
|
|
PORTDOCS= *
|
|
|
|
DOCSRCDIR1= ${WRKSRC}
|
|
DOC_FILES1= AUTHORS CHANGES README
|
|
|
|
DOCSRCDIR2= ${WRKSRC}/doc
|
|
DOCSDIR2= ${DOCSDIR}/doc
|
|
DOC_FILES2= *.png *.html
|
|
|
|
DESKTOP_ENTRIES="Tuxedo The Penguin: A Quest for Herring" "${COMMENT}" ${PORTNAME} \
|
|
"${PORTNAME}" "Game;ArcadeGame;" false
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|-lplibul|-lplibul -lplibjs| ; \
|
|
s|-O6||g ; \
|
|
s|-lpthread|| ; \
|
|
s|datadir/games|datadir|' ${WRKSRC}/configure
|
|
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|$$(prefix)/games|@bindir@|g ; \
|
|
s|$$(datadir)/games|$$(datadir)|g'
|
|
@${REINPLACE_CMD} -e 's|doc contrib| contrib|' \
|
|
${WRKSRC}/Makefile.in
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${PREFIX}/share/pixmaps
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
|
|
@${MKDIR} ${DOCSDIR2}
|
|
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|