freebsd-ports/devel/srecord/Makefile
2021-04-06 16:31:07 +02:00

59 lines
1.4 KiB
Makefile

# Created by: ijliao
PORTNAME= srecord
PORTVERSION= 1.64
PORTREVISION= 17
CATEGORIES= devel
MASTER_SITES= SF
MAINTAINER= brooks@FreeBSD.org
COMMENT= Collection of powerful tools for manipulating EPROM load files
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:devel/boost-libs
LIB_DEPENDS= libgcrypt.so:security/libgcrypt
ALL_TARGET= all libdir/pkgconfig/srecord.pc
USES= ghostscript groff libtool:build
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
HEADER_DIRS= input \
input/file \
input/filter \
input/filter/checksum \
input/filter/interval \
input/filter/message \
input/generator \
memory \
memory/walker \
output \
output/file \
quit
OPTIONS_DEFINE= DOCS
pre-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${MKDIR} ${STAGEDIR}${PREFIX}/include/${PORTNAME}
${MKDIR} ${HEADER_DIRS:S,^,${STAGEDIR}${PREFIX}/include/${PORTNAME}/,}
post-install:
chmod 644 ${STAGEDIR}${PREFIX}/lib/libsrecord.so.0
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsrecord.so.0
chmod 444 ${STAGEDIR}${PREFIX}/lib/libsrecord.so.0
${INSTALL_DATA} ${WRKSRC}/libdir/pkgconfig/srecord.pc \
${STAGEDIR}${PREFIX}/libdata/pkgconfig
test:
@cd ${WRKSRC} && ${MAKE} sure
build-plist:
${RM} ${PLIST}
${MAKE} makeplist | \
${GREP} -v /you/have/to/check/what/makeplist/gives/you >> ${PLIST}
.include <bsd.port.mk>