- Fix build on current
- Simplify custom makefile handling
This commit is contained in:
parent
0eb9375076
commit
6833446d9b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=409547
@ -13,13 +13,12 @@ USES= uidfix
|
||||
USE_LDCONFIG= yes
|
||||
SHLIB_MAJOR= 3
|
||||
PLIST_SUB= SHLIB_MAJOR="${SHLIB_MAJOR}"
|
||||
MAKE_ENV= SHLIB_MAJOR="${SHLIB_MAJOR}"
|
||||
|
||||
USE_OPENSSL= yes
|
||||
|
||||
post-patch:
|
||||
${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.prev
|
||||
@${SED} -e "s=%%SHLIB_MAJOR%%=${SHLIB_MAJOR}=g" \
|
||||
${FILESDIR}/Makefile > ${WRKSRC}/Makefile
|
||||
@${CP} ${FILESDIR}/Makefile ${WRKSRC}/Makefile
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
|
@ -4,8 +4,6 @@ LIB = domainkeys
|
||||
SRCS= dns_txt.c domainkeys.c dktrace.c
|
||||
INCS= domainkeys.h dktrace.h
|
||||
|
||||
SHLIB_MAJOR= %%SHLIB_MAJOR%%
|
||||
|
||||
LIBDIR= ${PREFIX}/lib
|
||||
INCLUDEDIR= ${PREFIX}/include
|
||||
CFLAGS+= -DBIND_8_COMPAT -I${OPENSSLBASE}/include
|
||||
@ -14,6 +12,7 @@ LDFLAGS+= -lcrypto -L${OPENSSLBASE}/lib
|
||||
NO_PROFILE=
|
||||
|
||||
makeheader: makeheader.c
|
||||
${CC} ${CFLAGS} makeheader.c -o makeheader
|
||||
|
||||
domainkeys.h: domainkeys.c makeheader
|
||||
./makeheader <domainkeys.c >domainkeys.h
|
||||
|
Loading…
Reference in New Issue
Block a user