|
Lines 2-8
Link Here
|
| 2 |
# $FreeBSD: head/www/cntlm/Makefile 306069 2012-10-18 13:06:32Z tabthorpe $ |
2 |
# $FreeBSD: head/www/cntlm/Makefile 306069 2012-10-18 13:06:32Z tabthorpe $ |
| 3 |
|
3 |
|
| 4 |
PORTNAME= cntlm |
4 |
PORTNAME= cntlm |
| 5 |
PORTVERSION= 0.92.2 |
5 |
PORTVERSION= 0.92.3 |
| 6 |
CATEGORIES= www |
6 |
CATEGORIES= www |
| 7 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION} |
7 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION} |
| 8 |
|
8 |
|
|
Lines 11-33
Link Here
|
| 11 |
|
11 |
|
| 12 |
USE_RC_SUBR= cntlm |
12 |
USE_RC_SUBR= cntlm |
| 13 |
HAS_CONFIGURE= yes |
13 |
HAS_CONFIGURE= yes |
|
|
14 |
USE_GMAKE= yes |
| 14 |
ALL_TARGET= cntlm |
15 |
ALL_TARGET= cntlm |
|
|
16 |
MAKE_JOBS_SAFE= yes |
| 17 |
|
| 15 |
MAN1= cntlm.1 |
18 |
MAN1= cntlm.1 |
| 16 |
|
19 |
|
| 17 |
.include <bsd.port.pre.mk> |
20 |
post-extract: |
|
|
21 |
@${LN} -sf cntlm.conf ${WRKSRC}/doc/cntlm.conf.sample |
| 18 |
|
22 |
|
| 19 |
post-patch: |
23 |
post-patch: |
| 20 |
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' \ |
24 |
@${REINPLACE_CMD} -e \ |
| 21 |
${WRKSRC}/Makefile |
25 |
's|^CC=|CC?=| ; \ |
|
|
26 |
s| -Wno-unused-but-set-variable | | ; \ |
| 27 |
s| -pedantic | | ; \ |
| 28 |
s| -O3 | | ; \ |
| 29 |
s|@$$(CC)|$$(CC)|' ${WRKSRC}/Makefile |
| 30 |
@${REINPLACE_CMD} -e \ |
| 31 |
'/exit 1/s|^|#|' ${WRKSRC}/configure |
| 22 |
|
32 |
|
| 23 |
do-install: |
33 |
do-install: |
| 24 |
${INSTALL_PROGRAM} ${WRKSRC}/cntlm ${PREFIX}/bin |
34 |
(cd ${WRKSRC} && ${INSTALL_PROGRAM} cntlm ${PREFIX}/bin) |
| 25 |
${INSTALL_DATA} ${WRKSRC}/doc/cntlm.conf ${PREFIX}/etc/cntlm.conf.sample |
35 |
(cd ${WRKSRC}/doc && ${INSTALL_MAN} cntlm.1 ${MANPREFIX}/man/man1) |
| 26 |
${INSTALL_MAN} ${WRKSRC}/doc/cntlm.1 ${PREFIX}/man/man1 |
36 |
(cd ${WRKSRC}/doc && ${INSTALL_DATA} cntlm.conf.sample ${PREFIX}/etc) |
| 27 |
|
37 |
.if !exists(${PREFIX}/etc/cntlm.conf) |
| 28 |
post-install: |
38 |
(cd ${PREFIX}/etc && ${CP} -p cntlm.conf.sample cntlm.conf) |
| 29 |
@if [ ! -f ${PREFIX}/etc/cntlm.conf ]; then \ |
39 |
.endif |
| 30 |
${CP} -p ${PREFIX}/etc/cntlm.conf.sample ${PREFIX}/etc/cntlm.conf; \ |
|
|
| 31 |
fi |
| 32 |
|
40 |
|
| 33 |
.include <bsd.port.post.mk> |
41 |
.include <bsd.port.mk> |