- Some mezz@ improvements

- Bump PORTREVISION
- Remove pkg-message file

Submitted by:	mezz@ via email
This commit is contained in:
Jose Alonso Cardenas Marquez 2007-10-07 08:46:30 +00:00
parent bdcb9f0e58
commit 79a93d0231
3 changed files with 24 additions and 18 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= pingus
PORTVERSION= 0.7.1
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://pingus.seul.org/files/
@ -23,7 +24,10 @@ USE_SCONS= yes
USE_SDL= sdl image mixer
PLIST= ${WRKDIR}/pkg-plist
SUB_FILES= pkg-message
post-patch:
@${REINPLACE_CMD} -e 's|add_path("data")|add_path("${DATADIR}")|g' \
${WRKSRC}/src/pingus_main.cpp
pre-install:
@${RM} -f ${PLIST}
@ -40,7 +44,4 @@ do-install:
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View file

@ -1,5 +1,14 @@
--- SConstruct.orig 2007-10-05 10:46:32.000000000 -0500
+++ SConstruct 2007-10-05 11:09:38.000000000 -0500
--- SConstruct.orig 2007-09-22 10:46:31.000000000 -0500
+++ SConstruct 2007-10-07 01:15:19.000000000 -0500
@@ -326,7 +326,7 @@
not (os.path.exists('config.py') and os.path.exists('config.h')) and \
not GetOption('clean'):
opts = DefineOptions(None, ARGUMENTS)
- env = Environment(options = opts)
+ env = Environment(ENV = os.environ, options = opts)
Help(opts.GenerateHelpText(env))
opts.Update(env)
@@ -337,7 +337,9 @@
if os.environ.has_key('PKG_CONFIG_PATH'):
env['ENV']['PKG_CONFIG_PATH'] = os.environ['PKG_CONFIG_PATH']
@ -11,3 +20,11 @@
config_h_defines = []
@@ -406,7 +408,6 @@
config_h = open('config.h', 'w')
config_h.write('#define VERSION "0.7.1"\n')
- config_h.write('#define ENABLE_BINRELOC 1\n')
config_h.write('#define ICONV_CONST\n') # FIXME: make a check for this
for (v,k) in config_h_defines:
config_h.write('#define %s %s\n' % (v, k))

View file

@ -1,12 +0,0 @@
###############################################################################
The Pingus game was installed
1) Use the --datadir option to the correct path of pingus data
# pingus --datadir %%DATADIR%%
2) Enjoy it
###############################################################################