- Fix build on current

- Simplify custom makefile handling
This commit is contained in:
Dmitry Marakasov 2016-02-25 18:11:37 +00:00
parent 0eb9375076
commit 6833446d9b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=409547
2 changed files with 3 additions and 5 deletions

View File

@ -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}

View File

@ -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