Lines 3-21
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= libscrypt |
4 |
PORTNAME= libscrypt |
5 |
PORTVERSION= 1.14 |
5 |
PORTVERSION= 1.14 |
|
|
6 |
PORTREVISION= 1 |
6 |
CATEGORIES= security |
7 |
CATEGORIES= security |
7 |
|
8 |
|
8 |
MAINTAINER= horia@racoviceanu.com |
9 |
MAINTAINER= horia@racoviceanu.com |
9 |
COMMENT= C library for the scrypt key derivation function |
10 |
COMMENT= C library for the scrypt key derivation function |
10 |
|
11 |
|
11 |
LICENSE= BSD |
12 |
LICENSE= BSD2CLAUSE |
12 |
|
13 |
|
13 |
NO_STAGE= yes |
|
|
14 |
USE_LDCONFIG= yes |
14 |
USE_LDCONFIG= yes |
15 |
USE_GITHUB= yes |
15 |
USE_GITHUB= yes |
16 |
GH_ACCOUNT= technion |
16 |
GH_ACCOUNT= technion |
|
|
17 |
GH_TAGNAME= ${GH_COMMIT} |
17 |
GH_COMMIT= 8e6966e |
18 |
GH_COMMIT= 8e6966e |
18 |
GH_TAGNAME= ${GH_COMMIT} |
|
|
19 |
|
19 |
|
20 |
PLIST_FILES= include/libscrypt.h \ |
20 |
PLIST_FILES= include/libscrypt.h \ |
21 |
lib/libscrypt.a \ |
21 |
lib/libscrypt.a \ |
Lines 25-42
Link Here
|
25 |
.include <bsd.port.pre.mk> |
25 |
.include <bsd.port.pre.mk> |
26 |
|
26 |
|
27 |
post-patch: |
27 |
post-patch: |
28 |
@${REINPLACE_CMD} -e '/^CC=gcc/d' -e '/CFLAGS=/s,$$, ${CFLAGS},' \ |
28 |
@${REINPLACE_CMD} -e '/^CC=gcc/d' -e '/CFLAGS=/s|$$| ${CFLAGS}|' \ |
29 |
-e 's,/usr/local,${PREFIX},' -e 's,install: library,& install-static,' \ |
29 |
-e 's|/usr/local|${PREFIX}| ; \ |
30 |
-e 's,$$(LDFLAGS),,' ${WRKSRC}/Makefile |
30 |
s|install: library|& install-static| ; \ |
|
|
31 |
s|$$(LDFLAGS)||' ${WRKSRC}/Makefile |
31 |
|
32 |
|
32 |
regression-test: build |
33 |
regression-test: build |
33 |
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check) |
34 |
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check) |
34 |
|
35 |
|
35 |
.if ${ARCH} == i386 |
36 |
.if ${ARCH} == i386 |
36 |
CCVERSION!= ${CC} --version |
37 |
CCVERSION!= ${CC} --version |
37 |
.if !empty(CCVERSION:tl:M*gcc*) |
38 |
. if !empty(CCVERSION:tl:M*gcc*) |
38 |
CFLAGS+= -fno-stack-protector |
39 |
CFLAGS+= -fno-stack-protector |
|
|
40 |
. endif |
39 |
.endif |
41 |
.endif |
40 |
.endif |
|
|
41 |
|
42 |
|
42 |
.include <bsd.port.post.mk> |
43 |
.include <bsd.port.post.mk> |