1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/devel/srecord/Makefile
Brooks Davis fc1f191349 Upgrade to 1.64.
Install the binaries, not just libtool wrapper scripts.

Install library (required for the binaries to work), headers, and pkgconfig.

Modernize: new LIB_DEPENDS, USES=libtool, staging, strip libraries.

Take maintainership.

Approved by:	maintainer timeout (implicit: no maintainer updates since 2008)
2014-06-26 21:02:37 +00:00

59 lines
1.4 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= srecord
PORTVERSION= 1.64
CATEGORIES= devel
MASTER_SITES= SF
MAINTAINER= brooks@FreeBSD.org
COMMENT= Collection of powerful tools for manipulating EPROM load files
BUILD_DEPENDS= ps2pdf:${PORTSDIR}/print/ghostscript9 \
${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs \
libtool:${PORTSDIR}/devel/libtool
LIB_DEPENDS= libgcrypt.so:${PORTSDIR}/security/libgcrypt
USES= libtool
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
post-build:
cd ${WRKSRC} && ${MAKE_CMD} libdir/pkgconfig/srecord.pc
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} -f ${PLIST}
${MAKE} makeplist | \
${GREP} -v /you/have/to/check/what/makeplist/gives/you >> ${PLIST}
.include <bsd.port.mk>