summaryrefslogtreecommitdiffstats
path: root/devel/srecord/Makefile
blob: e9d8bf00873640a3aa8eb06155432c03512967d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Created by: ijliao
# $FreeBSD$

PORTNAME=	srecord
PORTVERSION=	1.64
PORTREVISION=	7
CATEGORIES=	devel
MASTER_SITES=	SF

MAINTAINER=	brooks@FreeBSD.org
COMMENT=	Collection of powerful tools for manipulating EPROM load files

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 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>
OpenPOWER on IntegriCloud