Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 2013 02:50:07 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/184860: math/mbasecalc: Support CXX/CXXFLAGS properly
Message-ID:  <20131217025007.92324d84d45c5eb00ec68a38@yahoo.com>
Resent-Message-ID: <201312161810.rBGIAGAc016280@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131217025007.92324d84d45c5eb00ec68a38>