Bug 184860 - math/mbasecalc: Support CXX/CXXFLAGS properly
Summary: math/mbasecalc: Support CXX/CXXFLAGS properly
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pawel Pekala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-16 18:10 UTC by tkato432
Modified: 2013-12-25 14:30 UTC (History)
0 users

See Also:


Attachments
file.diff (1.09 KB, patch)
2013-12-16 18:10 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-12-16 18:10:16 UTC
- Support CXX/CXXFLAGS properly
- Add LICENSE
Comment 1 Pawel Pekala freebsd_committer freebsd_triage 2013-12-25 14:17:22 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pawel

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-12-25 14:25:29 UTC
Author: pawel
Date: Wed Dec 25 14:25:22 2013
New Revision: 337418
URL: http://svnweb.freebsd.org/changeset/ports/337418

Log:
  - Respect CXX/CXXFLAGS
  - Add LICENSE
  - Support staging
  
  PR:		ports/184860
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>

Modified:
  head/math/mbasecalc/Makefile

Modified: head/math/mbasecalc/Makefile
==============================================================================
--- head/math/mbasecalc/Makefile	Wed Dec 25 14:08:24 2013	(r337417)
+++ head/math/mbasecalc/Makefile	Wed Dec 25 14:25:22 2013	(r337418)
@@ -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>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Pawel Pekala freebsd_committer freebsd_triage 2013-12-25 14:25:33 UTC
State Changed
From-To: open->closed

Committed. Thanks!