- Respect CXX/CXXFLAGS

- Add LICENSE
- Support staging

PR:		ports/184860
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
This commit is contained in:
Pawel Pekala 2013-12-25 14:25:22 +00:00
parent d0a27f1d94
commit 753fe9623b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337418

View File

@ -11,15 +11,19 @@ DISTNAME= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple calculator program inspired by basecalc
LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk
LICENSE= GPLv2
MAKE_ARGS= INCLUDES="`fltk-config --cflags` -I." \
LIBS="`fltk-config --ldflags`"
LIB_DEPENDS= libfltk.so:${PORTSDIR}/x11-toolkits/fltk
MAKE_ARGS= CC="${CC}" CXX="${CXX}" CFLAGS="${CPPFLAGS} ${CXXFLAGS}" \
LIBS="${LDFLAGS}"
CPPFLAGS+= $$(fltk-config --cflags) -DSYS_UNIX
LDFLAGS+= $$(fltk-config --ldflags)
PLIST_FILES= bin/mbasecalc
NO_STAGE= yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mbasecalc ${PREFIX}/bin
(cd ${WRKSRC} && ${INSTALL_PROGRAM} mbasecalc ${STAGEDIR}${PREFIX}/bin)
.include <bsd.port.mk>