|
Lines 15-29
Link Here
|
| 15 |
|
15 |
|
| 16 |
LICENSE= GPLv2 |
16 |
LICENSE= GPLv2 |
| 17 |
|
17 |
|
|
|
18 |
OPTIONS_DEFINE= DATA |
| 19 |
OPTIONS_DEFAULT= DATA |
| 20 |
|
| 18 |
USE_SDL= sdl image mixer |
21 |
USE_SDL= sdl image mixer |
| 19 |
MAKE_JOBS_SAFE= yes |
22 |
MAKE_JOBS_SAFE= yes |
| 20 |
|
23 |
|
| 21 |
PLIST_FILES= bin/twind \ |
24 |
PLIST_FILES= bin/${PORTNAME} \ |
| 22 |
share/pixmaps/${PORTNAME}.png |
25 |
share/pixmaps/${PORTNAME}.png |
| 23 |
|
26 |
|
| 24 |
PORTDATA= * |
27 |
PORTDATA= * |
| 25 |
PORTDOCS= AUTHORS CREDITS ChangeLog NEWS README TODO |
28 |
PORTDOCS= AUTHORS CREDITS ChangeLog NEWS README TODO |
| 26 |
|
29 |
|
|
|
30 |
.include <bsd.port.options.mk> |
| 31 |
|
| 27 |
do-build: |
32 |
do-build: |
| 28 |
cd ${WRKSRC} && ${CC} -o ${PORTNAME} ${CFLAGS} \ |
33 |
cd ${WRKSRC} && ${CC} -o ${PORTNAME} ${CFLAGS} \ |
| 29 |
-DDATA_PREFIX=\"${DATADIR}/\" -DAUDIO -DLINUX \ |
34 |
-DDATA_PREFIX=\"${DATADIR}/\" -DAUDIO -DLINUX \ |
|
Lines 31-47
Link Here
|
| 31 |
do-install: |
36 |
do-install: |
| 32 |
# Executable |
37 |
# Executable |
| 33 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin |
38 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin |
| 34 |
# Pixmaps |
39 |
|
| 35 |
${INSTALL_DATA} ${WRKSRC}/graphics/twind.png ${PREFIX}/share/pixmaps/${PORTNAME}.png |
|
|
| 36 |
# Data |
40 |
# Data |
|
|
41 |
.if ${PORT_OPTIONS:MDATA} |
| 37 |
${MKDIR} ${DATADIR} |
42 |
${MKDIR} ${DATADIR} |
| 38 |
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "graphics music sound" ${DATADIR}) |
43 |
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "graphics music sound" ${DATADIR}) |
|
|
44 |
.endif |
| 45 |
|
| 46 |
# Pixmaps |
| 47 |
${INSTALL_DATA} ${WRKSRC}/graphics/${PORTNAME}.png ${PREFIX}/share/pixmaps/ |
| 48 |
|
| 39 |
# Documentation |
49 |
# Documentation |
| 40 |
.if !defined(NOPORTDOCS) |
50 |
.if ${PORT_OPTIONS:MDOCS} |
| 41 |
${MKDIR} ${DOCSDIR} |
51 |
${MKDIR} ${DOCSDIR} |
| 42 |
.for f in ${PORTDOCS} |
52 |
. for f in ${PORTDOCS} |
| 43 |
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} |
53 |
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} |
| 44 |
.endfor |
54 |
. endfor |
| 45 |
.endif |
55 |
.endif |
| 46 |
|
56 |
|
| 47 |
.include <bsd.port.mk> |
57 |
.include <bsd.port.mk> |