Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= toppler |
8 |
PORTNAME= toppler |
9 |
PORTVERSION= 0.71 |
9 |
PORTVERSION= 1.0.2 |
10 |
CATEGORIES= games |
10 |
CATEGORIES= games |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITE_SUBDIR= toppler |
12 |
MASTER_SITE_SUBDIR= toppler |
Lines 23-48
Link Here
|
23 |
GNU_CONFIGURE= yes |
23 |
GNU_CONFIGURE= yes |
24 |
CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" |
24 |
CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" |
25 |
|
25 |
|
26 |
SCOREDIR?= /var/games/${PORTNAME} |
26 |
MAN6= toppler.6 |
27 |
SCOREFILE?= ${PORTNAME}.hscr |
|
|
28 |
|
27 |
|
29 |
pre-patch: |
28 |
pre-patch: |
30 |
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure |
29 |
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure |
31 |
@find ${WRKSRC} \( -name "*.[ch]" -or -name "*.cc" \) | \ |
30 |
@find ${WRKSRC} \( -name "*.[ch]" -or -name "*.cc" \) | \ |
32 |
xargs ${PERL} -pi -e 's|"SDL/SDL|"SDL|g ; s|<SDL/SDL|<SDL|g' |
31 |
xargs ${PERL} -pi -e 's|"SDL/SDL|"SDL|g ; s|<SDL/SDL|<SDL|g' |
33 |
|
32 |
|
34 |
post-patch: |
|
|
35 |
@${PERL} -pi -e 's|%SCOREDIR%|${SCOREDIR}|g;' \ |
36 |
-e 's|%SCOREFILE%|${SCOREFILE}|g' ${WRKSRC}/menu.cc |
37 |
|
38 |
pre-install: |
39 |
${MKDIR} ${SCOREDIR} |
40 |
|
41 |
post-install: |
33 |
post-install: |
42 |
${CHOWN} root:games ${PREFIX}/bin/${PORTNAME} |
34 |
@cd ${WRKSRC} && ${MAKE} global_highscore |
43 |
${CHMOD} g+s ${PREFIX}/bin/${PORTNAME} |
|
|
44 |
${TOUCH} ${SCOREDIR}/${SCOREFILE} |
45 |
${CHMOD} 664 ${SCOREDIR}/${SCOREFILE} |
46 |
${CHOWN} root:games ${SCOREDIR}/${SCOREFILE} |
47 |
|
35 |
|
48 |
.include <bsd.port.mk> |
36 |
.include <bsd.port.mk> |