Lines 14-47
Link Here
|
14 |
USE_RC_SUBR= gogoc |
14 |
USE_RC_SUBR= gogoc |
15 |
USE_OPENSSL= yes |
15 |
USE_OPENSSL= yes |
16 |
|
16 |
|
17 |
MAKE_JOBS_UNSAFE= yes |
17 |
OPTIONS_DEFINE= DOCS EXAMPLES |
18 |
|
18 |
|
19 |
MAN5= gogoc.conf.5 |
19 |
MAKE_JOBS_UNSAFE= yes |
20 |
MAN8= gogoc.8 |
|
|
21 |
|
20 |
|
22 |
PORTDOCS= README CLIENT-LICENSE.TXT GUI-LICENSE.TXT |
21 |
PORTDOCS= CLIENT-LICENSE.TXT GUI-LICENSE.TXT INSTALL README |
23 |
|
22 |
|
24 |
SUB_FILES= gogoc |
23 |
SUB_FILES= gogoc |
25 |
SUB_LIST= LOCALBASE=${LOCALBASE} |
24 |
SUB_LIST= LOCALBASE=${LOCALBASE} |
26 |
|
25 |
|
27 |
NO_STAGE= yes |
26 |
.include <bsd.port.options.mk> |
|
|
27 |
|
28 |
do-install: |
28 |
do-install: |
29 |
cd ${WRKSRC}/gogoc-tsp/ && \ |
29 |
cd ${WRKSRC}/gogoc-tsp/ && ${SETENV} ${MAKE_ENV} DESTDIR=${STAGEDIR} \ |
30 |
${MAKE_CMD} platform=freebsd installdir=${PREFIX} install |
30 |
${MAKE_CMD} platform=freebsd installdir=${STAGEDIR}${PREFIX} install |
31 |
${RM} ${PREFIX}/bin/gogoc.conf* |
31 |
${RM} ${STAGEDIR}${PREFIX}/bin/gogoc.conf* |
32 |
.if !defined(NOPORTEXAMPLES) |
32 |
|
33 |
${MKDIR} ${EXAMPLESDIR} |
33 |
post-install: |
34 |
${INSTALL_DATA} ${WRKSRC}/gogoc-tsp/bin/gogoc.conf.sample ${EXAMPLESDIR} |
34 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gogoc |
|
|
35 |
.if ${PORT_OPTIONS:MEXAMPLES} |
36 |
${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
37 |
${INSTALL_DATA} ${WRKSRC}/gogoc-tsp/bin/gogoc.conf.sample ${STAGEDIR}${EXAMPLESDIR} |
35 |
.endif |
38 |
.endif |
36 |
.if !defined(NOPORTDOCS) |
39 |
.if ${PORT_OPTIONS:MDOCS} |
37 |
${MKDIR} ${DOCSDIR} |
40 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
38 |
.for file in ${PORTDOCS} |
41 |
.for file in ${PORTDOCS} |
39 |
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} |
42 |
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR} |
40 |
.endfor |
43 |
.endfor |
41 |
.endif |
44 |
.endif |
42 |
|
45 |
@${REINPLACE_CMD} -e \ |
43 |
@if [ ! -f ${PREFIX}/etc/gogoc.conf ]; then \ |
46 |
's|gogoc_dir=/usr/ports/net/gogoc/work/stage/usr/local|gogoc_dir=/usr/local|g' \ |
44 |
${TOUCH} ${PREFIX}/etc/gogoc.conf ; \ |
47 |
${STAGEDIR}${EXAMPLESDIR}/gogoc.conf.sample |
|
|
48 |
|
49 |
@if [ ! -f ${STAGEDIR}${PREFIX}/etc/gogoc.conf ]; then \ |
50 |
${CP} -p ${STAGEDIR}${EXAMPLESDIR}/gogoc.conf.sample ${STAGEDIR}${PREFIX}/etc/gogoc.conf ; \ |
45 |
fi |
51 |
fi |
46 |
|
52 |
|
47 |
.include <bsd.port.mk> |
53 |
.include <bsd.port.mk> |