Lines 17-57
Link Here
|
17 |
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png |
17 |
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png |
18 |
RUN_DEPENDS= ${LOCALBASE}/bin/timidity:${PORTSDIR}/audio/timidity |
18 |
RUN_DEPENDS= ${LOCALBASE}/bin/timidity:${PORTSDIR}/audio/timidity |
19 |
|
19 |
|
|
|
20 |
ONLY_FOR_ARCHS= i386 |
21 |
|
20 |
USE_REINPLACE= yes |
22 |
USE_REINPLACE= yes |
21 |
REINPLACE_ARGS= -i "" |
23 |
REINPLACE_ARGS= -i "" |
|
|
24 |
USE_GL= yes |
25 |
USE_SDL= sdl mixer net |
26 |
|
22 |
USE_LIBTOOL_VER= 15 |
27 |
USE_LIBTOOL_VER= 15 |
23 |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
28 |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
24 |
CONFIGURE_ENV= CFLAGS="${CFLAGS} `${SDL_CONFIG} --cflags` -I${LOCALBASE}/include -I${X11BASE}/include" \ |
29 |
CONFIGURE_ENV= CFLAGS="${CFLAGS} `${SDL_CONFIG} --cflags` -I${LOCALBASE}/include -I${X11BASE}/include" \ |
25 |
CPPFLAGS="`${SDL_CONFIG} --cflags` -I${LOCALBASE}/include -I${X11BASE}/include" |
30 |
CPPFLAGS="`${SDL_CONFIG} --cflags` -I${LOCALBASE}/include -I${X11BASE}/include" |
26 |
USE_SDL= sdl mixer net |
31 |
|
27 |
USE_GL= yes |
|
|
28 |
INSTALLS_SHLIB= yes |
32 |
INSTALLS_SHLIB= yes |
29 |
NOT_FOR_ARCHS= amd64 |
|
|
30 |
|
33 |
|
|
|
34 |
SUB_FILES= pkg-message |
31 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
35 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
32 |
|
36 |
|
33 |
.if exists(${LOCALBASE}/lib/libopenal.so.0) || defined(WITH_OPENAL) |
37 |
.include "${.CURDIR}/../doom-data/Makefile.include" |
34 |
WITH_OPENAL= yes |
|
|
35 |
LIB_DEPENDS+= openal.0:${PORTSDIR}/audio/openal |
36 |
.endif |
37 |
|
38 |
.if !defined(WITH_OPENAL) |
39 |
PLIST_SUB= WITH_OPENAL="@comment " |
40 |
.else |
41 |
PLIST_SUB= WITH_OPENAL="" |
42 |
.endif |
43 |
|
38 |
|
44 |
.include <bsd.port.pre.mk> |
39 |
.include <bsd.port.pre.mk> |
45 |
|
40 |
|
46 |
.if ${ARCH} == "ia64" || ${ARCH} == "sparc64" || ${ARCH} == "alpha" |
41 |
.if defined(WITH_OPENAL) || exists(${LOCALBASE}/lib/libopenal.so.0) |
47 |
BROKEN= "Does not build on ia64, sparc64 or alpha" |
42 |
LIB_DEPENDS+= openal.0:${PORTSDIR}/audio/openal |
48 |
.endif |
43 |
PLIST_SUB= OPENAL="" |
49 |
|
44 |
.else |
50 |
.ifndef (WITH_OPENAL) |
45 |
PLIST_SUB= OPENAL="@comment " |
51 |
pre-everything:: |
|
|
52 |
@${ECHO_CMD} "" |
53 |
@${ECHO_CMD} "Optionally define WITH_OPENAL=yes to build OpenAL sound plugin" |
54 |
@${ECHO_CMD} "" |
55 |
.endif |
46 |
.endif |
56 |
|
47 |
|
57 |
post-patch: |
48 |
post-patch: |
Lines 64-75
Link Here
|
64 |
.ifndef (NOPORTDOCS) |
55 |
.ifndef (NOPORTDOCS) |
65 |
@${MKDIR} ${DOCSDIR} |
56 |
@${MKDIR} ${DOCSDIR} |
66 |
${INSTALL_DATA} ${WRKSRC}/Doc/*.txt ${DOCSDIR} |
57 |
${INSTALL_DATA} ${WRKSRC}/Doc/*.txt ${DOCSDIR} |
67 |
.for i in jDoom jHeretic jHexen |
58 |
. for i in jDoom jHeretic jHexen |
68 |
@${MKDIR} ${DOCSDIR}/${i} |
59 |
@${MKDIR} ${DOCSDIR}/${i} |
69 |
${INSTALL_DATA} ${WRKSRC}/Doc/${i}/*.txt ${DOCSDIR}/${i} |
60 |
${INSTALL_DATA} ${WRKSRC}/Doc/${i}/*.txt ${DOCSDIR}/${i} |
70 |
.endfor |
61 |
. endfor |
71 |
.endif |
62 |
.endif |
72 |
@(${SED} -e 's|%%PREFIX%%|${PREFIX}|; s|%%DOCSDIR%%|${DOCSDIR}|' \ |
63 |
@${ECHO_CMD} |
73 |
<pkg-message >${PKGMESSAGE} && ${CAT} ${PKGMESSAGE}) |
64 |
@${CAT} ${PKGMESSAGE} |
|
|
65 |
@${ECHO_CMD} |
74 |
|
66 |
|
75 |
.include <bsd.port.post.mk> |
67 |
.include <bsd.port.post.mk> |