blob: e98cb70dbe8bdd2db879255a11b96c9d21a29c6d (
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
67
68
69
70
71
|
# Created by: ijliao
# $FreeBSD$
PORTNAME= burrtools
PORTVERSION= 0.6.3
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Puzzle solver
LICENSE= GPLv3
BUILD_DEPENDS= netpbm>0:${PORTSDIR}/graphics/netpbm
LIB_DEPENDS= libboost_system.so:${PORTSDIR}/devel/boost-libs \
libpng.so:${PORTSDIR}/graphics/png \
libxmlwrapp.so:${PORTSDIR}/textproc/xmlwrapp \
libfltk.so:${PORTSDIR}/x11-toolkits/fltk
USES= gmake
USE_XORG= x11 xt xext xmu xi
USE_GL= glu
USE_GCC= yes # clang generates incorrect binaries: cause SIGILL
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-silent-rules
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lboost_system
PORTDOCS= *
PORTEXAMPLES= *
PLIST_FILES= bin/burrTxt bin/burrTxt2 bin/burrGui \
share/pixmaps/burricons.png
DESKTOP_ENTRIES="BurrGui" "" "${PREFIX}/pixmaps/burricons.png" "burrGui" "" ""
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
.if ${OSVERSION} >= 1000024
LDFLAGS+= -lc++
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|g++ |$$(CXX) | ; \
s|-O2 |$$(CXXFLAGS) |' ${WRKSRC}/src/Makefile.in
post-build:
(cd ${WRKSRC} && ${CAT} burricons.ico | winicontoppm -bestqual | \
pnmtopng -transparent=black > burricons.png)
do-install:
(cd ${WRKSRC}/src && ${INSTALL_PROGRAM} burrTxt burrTxt2 \
${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC}/src/gui && ${INSTALL_PROGRAM} burrGui \
${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC} && ${INSTALL_DATA} burricons.png \
${STAGEDIR}${PREFIX}/share/pixmaps)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in AUTHORS ChangeLog NEWS README
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} \
${STAGEDIR}${DOCSDIR})
.endfor
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . \
${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>
|