Lines 19-60
Link Here
|
19 |
LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis \ |
19 |
LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis \ |
20 |
libfreetype.so:${PORTSDIR}/print/freetype2 |
20 |
libfreetype.so:${PORTSDIR}/print/freetype2 |
21 |
|
21 |
|
|
|
22 |
USES= gettext gmake python |
22 |
USE_SDL= mixer ttf sdl |
23 |
USE_SDL= mixer ttf sdl |
23 |
USE_PYTHON= yes |
24 |
USE_GCC= any |
24 |
USES= gettext gmake |
|
|
25 |
GNU_CONFIGURE= yes |
25 |
GNU_CONFIGURE= yes |
26 |
CONFIGURE_ENV= PYPACKAGE="${PYTHON_CMD}" ac_cv_path_P_SWIG=no |
26 |
CONFIGURE_ENV= PYPACKAGE="${PYTHON_CMD}" ac_cv_path_P_SWIG=no |
27 |
CONFIGURE_ARGS= --disable-py-debug |
27 |
CONFIGURE_ARGS= --disable-py-debug |
28 |
|
28 |
|
29 |
PLIST_SUB= VERSION="${PORTVERSION:R}" |
29 |
CPPFLAGS+= -I${LOCALBASE}/include |
|
|
30 |
LDFLAGS+= -L${LOCALBASE}/lib |
30 |
|
31 |
|
31 |
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} |
32 |
PLIST_SUB= VERSION="${PORTVERSION:R}" |
32 |
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} |
|
|
33 |
|
33 |
|
34 |
WEDGE_VERSION= 0.3.5 |
34 |
BROKEN_sparc64= Does not build on sparc64 |
35 |
|
35 |
|
36 |
NO_STAGE= yes |
36 |
DESKTOP_ENTRIES="Adonthell" "" "" "adonthell" "" "" |
37 |
.include <bsd.port.pre.mk> |
|
|
38 |
|
37 |
|
39 |
.if ${ARCH} == "sparc64" |
38 |
WEDGE_VERSION= 0.3.5 |
40 |
BROKEN= Does not build on sparc64 |
|
|
41 |
.endif |
42 |
|
39 |
|
43 |
post-patch: |
40 |
post-patch: |
44 |
@cd ${WRKSRC} && ${REINPLACE_CMD} -e \ |
41 |
@cd ${WRKSRC} && ${REINPLACE_CMD} -e \ |
45 |
's|-g -Wall|$$CFLAGS -Wall|g ; \ |
42 |
's|-g -Wall|$$CFLAGS -Wall|g ; \ |
46 |
s|-lpthread|${PTHREAD_LIBS}|g' configure |
43 |
s|-lpthread|-pthread|g' configure |
|
|
44 |
@cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} && ${REINPLACE_CMD} -e \ |
45 |
's|@adonthell_binary@|${PREFIX}/bin/adonthell|' Makefile.in |
47 |
@cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} && ${REINPLACE_CMD} -e \ |
46 |
@cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} && ${REINPLACE_CMD} -e \ |
48 |
's/test $$adonthell_major_ver -eq 0 .*/true ;/' configure |
47 |
's|test $$adonthell_major_ver -eq 0 .*|true ;|' configure |
49 |
@cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} && ${REINPLACE_CMD} -e \ |
48 |
@cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} && ${REINPLACE_CMD} -e \ |
50 |
's/^[[:space:]]*_//' scripts/modules/player_text.py |
49 |
's|^[[:space:]]*_||' scripts/modules/player_text.py |
51 |
|
50 |
|
52 |
post-install: |
51 |
post-install: |
53 |
cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} \ |
52 |
cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} \ |
54 |
&& ${SETENV} ${CONFIGURE_ENV} ./configure ${CONFIGURE_ARGS} \ |
53 |
&& ${SETENV} ${CONFIGURE_ENV} ./configure ${CONFIGURE_ARGS} \ |
55 |
--with-adonthell-binary=${PREFIX}/bin/${PORTNAME} \ |
54 |
--with-adonthell-binary=${STAGEDIR}${PREFIX}/bin/adonthell \ |
56 |
${CONFIGURE_TARGET} |
55 |
${CONFIGURE_TARGET} |
57 |
cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} && ${MAKE_CMD} |
56 |
cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} && ${SETENV} HOME=${WRKDIR} \ |
58 |
cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} && ${MAKE_CMD} install |
57 |
${MAKE_CMD} |
|
|
58 |
cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} && ${SETENV} HOME=${WRKDIR} \ |
59 |
${MAKE_CMD} ${MAKE_ARGS} ${INSTALL_TARGET} |
59 |
|
60 |
|
60 |
.include <bsd.port.post.mk> |
61 |
.include <bsd.port.mk> |