diff options
Diffstat (limited to 'games/BillardGL/Makefile')
-rw-r--r-- | games/BillardGL/Makefile | 72 |
1 files changed, 52 insertions, 20 deletions
diff --git a/games/BillardGL/Makefile b/games/BillardGL/Makefile index a6c388d8ca0e..0d84789cc82f 100644 --- a/games/BillardGL/Makefile +++ b/games/BillardGL/Makefile @@ -5,40 +5,72 @@ # $FreeBSD$ # -PORTNAME= BillardGL -PORTVERSION= 1.75 -PORTREVISION= 7 -CATEGORIES= games -MASTER_SITES= SF/${PORTNAME:L}/${PORTNAME:L}/${PORTNAME}%20${PORTVERSION} +PORTNAME= BillardGL +PORTVERSION= 1.75 +PORTREVISION= 8 +CATEGORIES= games +MASTER_SITES= SF/${PORTNAME:L}/${PORTNAME:L}/${PORTNAME}%20${PORTVERSION}/ \ + SF/nemysisfreebsdp/:icons +DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \ + ${PORTNAME}-LP-010.zip \ + ${PORTNAME}_icons.tar.gz:icons +DIST_SUBDIR= ${PORTNAME:L} -MAINTAINER= ports@FreeBSD.org -COMMENT= OpenGL billiards simulator +MAINTAINER= nemysis@gmx.ch +COMMENT= OpenGL pool billiard simulation + +LICENSE= GPLv2 + +EXTRACT_DEPENDS= unzip:${PORTSDIR}/archivers/unzip WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src +USE_DOS2UNIX= Makefile USE_GMAKE= yes USE_XORG= xmu xext x11 xi -USE_GL= gl glut +USE_GL= glut + +PLIST_FILES= bin/${PORTNAME} \ + share/pixmaps/${PORTNAME}_48.png \ + share/pixmaps/${PORTNAME}_64.png \ + share/pixmaps/${PORTNAME}_72.png \ + share/pixmaps/${PORTNAME}_96.png + +PORTDATA= * +PORTDOCS= README + +OPTIONS_DEFINE= LANG +LANG_DESC= Install additional Language +OPTIONS_DEFAULT= LANG + +.include <bsd.port.options.mk> post-patch: - @${REINPLACE_CMD} -e 's|%%PORTNAME%%|${PORTNAME}|; \ - s|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/Namen.h +# Fix data location + @${REINPLACE_CMD} -e 's|/usr/share/BillardGL/|${DATADIR}/|' ${WRKSRC}/Namen.h do-install: +# Executable ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin - @${MKDIR} ${DATADIR} - @${MKDIR} ${DATADIR}/lang - ${INSTALL_DATA} ${WRKSRC}/lang/*.lang ${DATADIR}/lang - @${MKDIR} ${DATADIR}/Texturen -.for i in 1 2 4 8 - @${MKDIR} ${DATADIR}/Texturen/${i} - ${INSTALL_DATA} ${WRKSRC}/Texturen/${i}/*.bmp ${DATADIR}/Texturen/${i} +# Data +# ${MKDIR} ${DATADIR} +.for d in Texturen lang + @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR}) .endfor -.ifndef (NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - ${TR} -d '\r' <${WRKSRC}/README >${DOCSDIR}/README +# Pixmaps + ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}*.png ${PREFIX}/share/pixmaps + +# Documentation +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} +.endif + +# Additional Language +.if ${PORT_OPTIONS:MLANG} + ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-LP-010/*.lang ${DATADIR}/lang/ .endif .include <bsd.port.mk> |