1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00

- Fix building with the latest boost

- Respect ${CC}
- Minor improvements
This commit is contained in:
Dmitry Marakasov 2009-02-28 02:30:24 +00:00
parent 55d7c6ad26
commit 0b2a25f03d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=229202
3 changed files with 27 additions and 8 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= mkhexgrid
PORTVERSION= 0.1.1
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= http://www.nomic.net/~uckelman/mkhexgrid/releases/ \
http://aaron.daltons.ca/freebsd/
@ -24,18 +24,12 @@ USE_GMAKE= yes
PORTDOCS= mkhexgrid.html
PLIST_FILES= bin/mkhexgrid
post-patch:
@${REINPLACE_CMD} -e 's:^LDFLAGS=:LDFLAGS=-L${LOCALBASE}/lib :' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's:^CPPFLAGS=:CPPFLAGS=-I${LOCALBASE}/include :' ${WRKSRC}/Makefile
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/mkhexgrid ${PREFIX}/bin
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/doc/mkhexgrid.html ${DOCSDIR}
@${ECHO} "Documentation has been installed in ${DOCSDIR}."
@${ECHO} "Documentation has been installed into ${DOCSDIR}."
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,14 @@
--- Makefile.orig 2007-01-10 16:37:42.000000000 +0300
+++ Makefile 2009-02-28 05:17:28.000000000 +0300
@@ -8,9 +8,8 @@
DISTDIR=mkhexgrid-$(VERSION)
RPMDIR=/home/uckelman/rpmbuild
-CC=g++
-CPPFLAGS=-c -g -O2 -W -Wall -DVERSION='"$(VERSION)"'
-LDFLAGS=-lm -lstdc++ -lgd
+CPPFLAGS=-I${LOCALBASE}/include -c -W -Wall -DVERSION='"$(VERSION)"'
+LDFLAGS=-L${LOCALBASE}/lib -lm -lstdc++ -lgd
FILES=grid.h \
grid.cpp \

View File

@ -0,0 +1,11 @@
--- mkhexgrid.cpp.orig 2007-01-10 16:37:42.000000000 +0300
+++ mkhexgrid.cpp 2009-02-28 05:14:36.000000000 +0300
@@ -148,7 +148,7 @@
Grid g(opt);
g.draw();
}
- catch (exception &e) {
+ catch (std::exception &e) {
cerr << argv[0] << ": " << e.what() << endl;
exit(1);
}