Lines 17-23
Link Here
|
17 |
USE_SDL= sdl mixer image |
17 |
USE_SDL= sdl mixer image |
18 |
GNU_CONFIGURE= yes |
18 |
GNU_CONFIGURE= yes |
19 |
USE_GMAKE= yes |
19 |
USE_GMAKE= yes |
20 |
USE_REINPLACE= yes |
|
|
21 |
CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include |
20 |
CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include |
22 |
LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD} |
21 |
LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD} |
23 |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
22 |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
Lines 25-30
Link Here
|
25 |
|
24 |
|
26 |
CEFEDIRS= ima musicas niveles sonidos |
25 |
CEFEDIRS= ima musicas niveles sonidos |
27 |
|
26 |
|
|
|
27 |
OPTIONS= NLS "Native Language Support" off |
28 |
|
29 |
.include <bsd.port.pre.mk> |
30 |
|
31 |
.if defined(WITHOUT_NLS) |
32 |
CONFIGURE_ARGS+= --disable-nls |
33 |
PLIST_SUB+= NLS="@comment " |
34 |
.else |
35 |
USE_GETTEXT= yes |
36 |
PLIST_SUB+= NLS="" |
37 |
FLAG_NLS= true |
38 |
.endif |
39 |
|
28 |
post-extract: |
40 |
post-extract: |
29 |
@${FIND} -E ${WRKSRC}/src/ -type f -iregex ".*\.(cpp|h)" \ |
41 |
@${FIND} -E ${WRKSRC}/src/ -type f -iregex ".*\.(cpp|h)" \ |
30 |
-print0 | ${XARGS} -0 ${REINPLACE_CMD} -e 's/<SDL/<SDL11/' |
42 |
-print0 | ${XARGS} -0 ${REINPLACE_CMD} -e 's/<SDL/<SDL11/' |
Lines 38-47
Link Here
|
38 |
${INSTALL_PROGRAM} ceferino ceferinoeditor ceferinosetup ${PREFIX}/bin && \ |
50 |
${INSTALL_PROGRAM} ceferino ceferinoeditor ceferinosetup ${PREFIX}/bin && \ |
39 |
${FIND} ${CEFEDIRS} -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \ |
51 |
${FIND} ${CEFEDIRS} -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \ |
40 |
${FIND} -E ${CEFEDIRS} -type f -iregex ".*\.(png|jpg|xm|map|wav)" -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \; |
52 |
${FIND} -E ${CEFEDIRS} -type f -iregex ".*\.(png|jpg|xm|map|wav)" -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \; |
|
|
53 |
.if defined(FLAG_NLS) |
41 |
.for FILE in es ca fr |
54 |
.for FILE in es ca fr |
42 |
${MKDIR} ${PREFIX}/share/locale/${FILE}/LC_MESSAGES && \ |
55 |
${MKDIR} ${PREFIX}/share/locale/${FILE}/LC_MESSAGES && \ |
43 |
${INSTALL_DATA} ${WRKSRC}/po/${FILE}.gmo ${PREFIX}/share/locale/${FILE}/LC_MESSAGES/${PORTNAME}.mo |
56 |
${INSTALL_DATA} ${WRKSRC}/po/${FILE}.gmo ${PREFIX}/share/locale/${FILE}/LC_MESSAGES/${PORTNAME}.mo |
44 |
.endfor |
57 |
.endfor |
|
|
58 |
.endif |
45 |
|
59 |
|
46 |
post-install: |
60 |
post-install: |
47 |
.if !defined(NOPORTDOCS) |
61 |
.if !defined(NOPORTDOCS) |
Lines 50-53
Link Here
|
50 |
${INSTALL_DATA} AUTHORS ChangeLog README README_ES ${DOCSDIR} |
64 |
${INSTALL_DATA} AUTHORS ChangeLog README README_ES ${DOCSDIR} |
51 |
.endif |
65 |
.endif |
52 |
|
66 |
|
53 |
.include <bsd.port.mk> |
67 |
.include <bsd.port.post.mk> |