freebsd-ports/games/burrtools/Makefile
2018-01-18 04:11:02 +00:00

67 lines
1.8 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= burrtools
PORTVERSION= 0.6.3
PORTREVISION= 11
CATEGORIES= games
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Puzzle solver
LICENSE= GPLv2+ # COPYING is GPLv3
BUILD_DEPENDS= netpbm>0:graphics/netpbm
LIB_DEPENDS= libboost_system.so:devel/boost-libs \
libpng.so:graphics/png \
libfltk.so:x11-toolkits/fltk
USES= gmake localbase lua:51
USE_GL= gl glu
GNU_CONFIGURE= yes
CONFIGURE_ENV= ac_cv_lib_ICE_IceConnectionNumber="no" \
ac_cv_search_glutInit="none required"
MAKE_ARGS= am_lua_liblua_a_OBJECTS='lua/luaclass.$$(OBJEXT)'
LDFLAGS+= -Wl,--as-needed # fltk deps
LIBS+= -llua-${LUA_VER} -lboost_system # _ZN5boost6system15system_categoryEv
PORTDOCS= *
PORTEXAMPLES= *
PLIST_FILES= bin/burrTxt bin/burrTxt2 bin/burrGui \
share/pixmaps/burricons.png
DESKTOP_ENTRIES="BurrGui" "" "burricons" "burrGui" "Game;LogicGame;" ""
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e '/GL_X_LIBS/d' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|g++ |$$(CXX) | ; \
s|-O2 |$$(CXXFLAGS) $$(LDFLAGS) |' ${WRKSRC}/src/Makefile.in
post-build:
(cd ${WRKSRC} && ${CAT} burricons.ico | winicontoppm -bestqual | \
pnmtopng -transparent=black > burricons.png)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/burrTxt ${WRKSRC}/src/burrTxt2 \
${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/src/gui/burrGui ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/burricons.png ${STAGEDIR}${PREFIX}/share/pixmaps
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in AUTHORS ChangeLog NEWS README
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . \
${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>