summaryrefslogtreecommitdiffstats
path: root/games/airrox
diff options
context:
space:
mode:
authoralepulver <alepulver@FreeBSD.org>2006-04-24 20:59:28 +0000
committeralepulver <alepulver@FreeBSD.org>2006-04-24 20:59:28 +0000
commit2812b955d4986e35428ca77953784cae8b2285ae (patch)
treed9e2aa3f3af81a6481bdddf239721c403102a62a /games/airrox
parent192cd022b5468e3175b70ad86fd30bfa812df54f (diff)
downloadFreeBSD-ports-2812b955d4986e35428ca77953784cae8b2285ae.zip
FreeBSD-ports-2812b955d4986e35428ca77953784cae8b2285ae.tar.gz
- Remove USE_REINPLACE.
- Rename DATADIRS to DIRS to avoid similarity with DATADIR. - Adjust IGNORE message. - Format tabs. - Remove '@' from installation commands. - Fix OPTIONS handling. - Bump PORTREVISION. Approved by: garga (mentor)
Diffstat (limited to 'games/airrox')
-rw-r--r--games/airrox/Makefile66
1 files changed, 32 insertions, 34 deletions
diff --git a/games/airrox/Makefile b/games/airrox/Makefile
index 7f15ab5..c8bd355 100644
--- a/games/airrox/Makefile
+++ b/games/airrox/Makefile
@@ -7,7 +7,7 @@
PORTNAME= airrox
PORTVERSION= 0.0.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -21,7 +21,6 @@ LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut
USE_GMAKE= yes
USE_SDL= mixer net sdl
USE_GL= yes
-USE_REINPLACE= yes
REINPLACE_ARGS= -i ''
WRKSRC= ${WRKDIR}/${PORTNAME}/source
@@ -29,71 +28,70 @@ WRKSRC= ${WRKDIR}/${PORTNAME}/source
OPTIONS= OPTIMIZED_CFLAGS "Enable compilation optimizations" on
SUB_FILES= pkg-message
-PKGMESSAGE= ${WRKDIR}/pkg-message
ALL_TARGET= linux
-DATADIRS= audio icones imagens meshs texturas
+DIRS= audio icones imagens meshs texturas
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
-IGNORE= need sscanf() interface in libc
+IGNORE= needs sscanf() interface in libc
.endif
post-patch:
-# Fix Makefile
+# Fix Makefile.
@${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g ; \
- s|-lSDL ||g ; \
- s|-lpthread||g ; \
- s|sdl-config|${SDL_CONFIG}|g ; \
- s|\(-O2\)|${CFLAGS} -I${X11BASE}/include \
- `${SDL_CONFIG} --cflags` \1| ; \
- s|$$(INCLUDEWIN)||g ; \
- s|g++|${CXX}|g' \
- ${WRKSRC}/${MAKEFILE}
-
-# Fix SDL include statement
+ s|-lSDL ||g ; \
+ s|-lpthread||g ; \
+ s|sdl-config|${SDL_CONFIG}|g ; \
+ s|\(-O2\)|${CFLAGS} -I${X11BASE}/include \
+ `${SDL_CONFIG} --cflags` \1| ; \
+ s|$$(INCLUDEWIN)||g ; \
+ s|g++|${CXX}|g' \
+ ${WRKSRC}/${MAKEFILE}
+
+# Fix SDL include statement.
.for f in *.cpp *.h
@${FIND} ${WRKSRC} -type f -name "${f}" -print0 | \
${XARGS} -0 ${REINPLACE_CMD} -e \
's|\(#include.*\)SDL/\(SDL.*\)|\1\2|'
.endfor
-# Fix paths to ${DATADIR}
-.for d in ${DATADIRS}
+# Fix paths to ${DATADIR}.
+.for d in ${DIRS}
@${REINPLACE_CMD} -e 's|../\(${d}/\)|${DATADIR}/\1|' \
- ${WRKSRC}/*.cpp ${WRKSRC}/*.h
+ ${WRKSRC}/*.cpp ${WRKSRC}/*.h
.endfor
-# Enable/disable compilation optimizations
-.if !defined(WITH_OPTIMIZED_CFLAGS)
+# Enable/disable compilation optimizations.
+.if defined(WITHOUT_OPTIMIZED_CFLAGS)
@${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/${MAKEFILE}
.endif
do-install:
-# Program
- @${INSTALL_PROGRAM} ${WRKSRC}/air ${PREFIX}/bin/${PORTNAME}
+# Program.
+ ${INSTALL_PROGRAM} ${WRKSRC}/air ${PREFIX}/bin/${PORTNAME}
-# Data
- @${MKDIR} ${DATADIR}
+# Data.
+ ${MKDIR} ${DATADIR}
-# Data: directories
-.for d in ${DATADIRS}
- @${CP} -R ${WRKDIR}/${PORTNAME}/${d} ${DATADIR}
+# Data: directories.
+.for d in ${DIRS}
+ ${CP} -R ${WRKDIR}/${PORTNAME}/${d} ${DATADIR}
.endfor
-# Data: config.txt
- @${INSTALL_DATA} ${WRKSRC}/config.txt ${DATADIR}
+# Data: config.txt.
+ ${INSTALL_DATA} ${WRKSRC}/config.txt ${DATADIR}
-# Remove CVS directories
+# Remove CVS directories.
@${FIND} ${DATADIR} -type d -name "CVS" -print0 | \
${XARGS} -0 ${RM} -rf
-# Documentation (optional)
+# Documentation (optional).
.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- @${INSTALL_DATA} ${FILESDIR}/readme.txt ${DOCSDIR}
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${FILESDIR}/readme.txt ${DOCSDIR}
.endif
post-install:
OpenPOWER on IntegriCloud