blob: d6f971dab7a5339a53e0061462e07cde5b95f34b (
plain) (
blame)
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
58
59
60
61
62
63
64
65
66
|
# New ports collection makefile for: gecc
# Date created: 2002-11-07
# Whom: trevor
#
# $FreeBSD$
#
PORTNAME= gecc
PORTVERSION= 20021119
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= gecc
MAINTAINER= trevor@FreeBSD.org
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500039
LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
BROKEN= "only works as a wrapper"
.else
BROKEN= "getopt_long() problems"
.endif
BINS= gecc geccd
DOCS= AUTHORS COPYING ChangeLog NEWS TODO
DOCDIR= share/doc/${PORTNAME}
.if ${OSVERSION} < 500039
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
.endif
GNU_CONFIGURE= yes
PLIST= ${WRKDIR}/pkg-plist
USE_PYTHON= yes
USE_REINPLACE= yes
REINPLACE_ARGS= -i'' -E
post-extract:
${CP} ${FILESDIR}/README ${FILESDIR}/dashboard.h ${WRKSRC}
${REINPLACE_CMD} "s=usr/bin=${LOCALBASE}/bin=g" ${WRKSRC}/geccmon
pre-install:
${RM} -f ${PLIST}
.for ii in ${BINS} geccmon
${ECHO_CMD} bin/`${BASENAME} ${ii}` >> ${PLIST}
.endfor
.if !defined(NOPORTDOCS)
.for ii in ${DOCS} README
${ECHO_CMD} ${DOCDIR}/${ii} >> ${PLIST}
.endfor
${ECHO_CMD} "@dirrm " ${DOCDIR} >> ${PLIST}
.endif
do-install:
.for ii in ${BINS}
${INSTALL_PROGRAM} ${WRKSRC}/${ii} ${PREFIX}/bin
.endfor
${INSTALL_SCRIPT} ${WRKSRC}/geccmon ${PREFIX}/bin
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/${DOCDIR}
.for ii in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${ii} ${PREFIX}/${DOCDIR}
.endfor
${INSTALL_DATA} ${FILESDIR}/README ${PREFIX}/${DOCDIR}
.endif
.include <bsd.port.post.mk>
|