ports/184860: math/mbasecalc: Support CXX/CXXFLAGS properly
KATO Tsuguru
tkato432 at yahoo.com
Mon Dec 16 18:10:17 UTC 2013
>Number: 184860
>Category: ports
>Synopsis: math/mbasecalc: Support CXX/CXXFLAGS properly
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Dec 16 18:10:16 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Support CXX/CXXFLAGS properly
- Add LICENSE
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/math/mbasecalc/Makefile math/mbasecalc/Makefile
--- /usr/ports/math/mbasecalc/Makefile 2013-11-06 22:04:50.000000000 +0900
+++ math/mbasecalc/Makefile 2013-12-17 00:00:00.000000000 +0900
@@ -3,7 +3,7 @@
PORTNAME= mbasecalc
PORTVERSION= 1.1
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= math
MASTER_SITES= http://www.muquit.com/muquit/software/mbasecalc/
DISTNAME= ${PORTNAME}
@@ -11,15 +11,19 @@
MAINTAINER= ports at 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>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list