Lines 1-9
Link Here
|
1 |
# New ports collection makefile for: nethack |
1 |
# Created by: asami |
2 |
# Date created: 27 March 1995 |
|
|
3 |
# Whom: asami |
4 |
# |
5 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
6 |
# |
|
|
7 |
|
3 |
|
8 |
PORTNAME= nethack |
4 |
PORTNAME= nethack |
9 |
PORTVERSION= 3.4.3 |
5 |
PORTVERSION= 3.4.3 |
Lines 18-25
Link Here
|
18 |
|
14 |
|
19 |
LICENSE= nethack |
15 |
LICENSE= nethack |
20 |
LICENSE_NAME= NETHACK GENERAL PUBLIC LICENSE |
16 |
LICENSE_NAME= NETHACK GENERAL PUBLIC LICENSE |
|
|
17 |
LICENSE_FILE= ${WRKSRC}/dat/license |
21 |
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept |
18 |
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept |
22 |
LICENSE_FILE= ${WRKSRC}/dat/license |
|
|
23 |
|
19 |
|
24 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
20 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
25 |
|
21 |
|
Lines 75-86
Link Here
|
75 |
PATCH_DIST_STRIP= -p1 |
71 |
PATCH_DIST_STRIP= -p1 |
76 |
CFLAGS+= -DHPMON |
72 |
CFLAGS+= -DHPMON |
77 |
.endif |
73 |
.endif |
78 |
.elif ${PKGNAMESUFFIX} == "-qt" |
|
|
79 |
USE_QT_VER= 3 |
80 |
MAKE_ENV+= QTCPPFLAGS="${QTCPPFLAGS} ${PTHREAD_CFLAGS}" \ |
81 |
QTCFGLIBS="${QTCFGLIBS} ${PTHREAD_LIBS}" \ |
82 |
MOC="${MOC}" LIBQT="-lqt-mt" |
83 |
GRAPHICS= QT_GRAPHICS |
84 |
.endif |
74 |
.endif |
85 |
.endif |
75 |
.endif |
86 |
|
76 |
|
Lines 96-101
Link Here
|
96 |
${ECHO_MSG} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ; \ |
86 |
${ECHO_MSG} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ; \ |
97 |
fi |
87 |
fi |
98 |
|
88 |
|
|
|
89 |
.include <bsd.port.options.mk> |
90 |
|
99 |
post-patch: |
91 |
post-patch: |
100 |
.for f in include/config.h sys/unix/Makefile.src sys/unix/Makefile.top |
92 |
.for f in include/config.h sys/unix/Makefile.src sys/unix/Makefile.top |
101 |
@${REINPLACE_CMD} -e 's|%%HACKNAME%%|${HACKNAME}|g;s|%%HACKDIR%%|${PREFIX}/${HACKDIR}|g' ${WRKSRC}/${f} |
93 |
@${REINPLACE_CMD} -e 's|%%HACKNAME%%|${HACKNAME}|g;s|%%HACKDIR%%|${PREFIX}/${HACKDIR}|g' ${WRKSRC}/${f} |
Lines 113-119
Link Here
|
113 |
|
105 |
|
114 |
post-install: |
106 |
post-install: |
115 |
@cd ${WRKSRC}/doc; ${SETENV} ${MAKE_ENV} ${MAKE} manpages |
107 |
@cd ${WRKSRC}/doc; ${SETENV} ${MAKE_ENV} ${MAKE} manpages |
116 |
.if !defined(NOPORTDOCS) |
108 |
.if ${PORT_OPTIONS:MDOCS} |
117 |
@${MKDIR} ${PREFIX}/${HACKDOCSDIR} |
109 |
@${MKDIR} ${PREFIX}/${HACKDOCSDIR} |
118 |
${INSTALL_DATA} ${WRKSRC}/doc/Guidebook.txt ${PREFIX}/${HACKDOCSDIR} |
110 |
${INSTALL_DATA} ${WRKSRC}/doc/Guidebook.txt ${PREFIX}/${HACKDOCSDIR} |
119 |
.endif |
111 |
.endif |