summaryrefslogtreecommitdiff
path: root/math/units
diff options
context:
space:
mode:
Diffstat (limited to 'math/units')
-rw-r--r--math/units/Makefile15
-rw-r--r--math/units/PLIST7
2 files changed, 14 insertions, 8 deletions
diff --git a/math/units/Makefile b/math/units/Makefile
index 5ccad7d40e3..2a62f82557f 100644
--- a/math/units/Makefile
+++ b/math/units/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2009/05/20 00:58:22 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2012/05/29 18:33:34 cheusov Exp $
DISTNAME= units-1.86
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_GNU:=units/}
@@ -11,16 +11,21 @@ COMMENT= GNU Units - a calculator capable of performing unit conversions
PKG_DESTDIR_SUPPORT= user-destdir
+LICENSE= gnu-gpl-v2
+
INFO_FILES= YES
GNU_CONFIGURE= YES
.include "../../mk/bsd.prefs.mk"
-CONFIGURE_ARGS= --program-prefix=${GNU_PROGRAM_PREFIX}
+CONFIGURE_ARGS= --program-prefix=g
+
+INSTALLATION_DIRS= gnu/bin
-PLIST_SUBST+= GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX}
-BUILD_DEFS+= GNU_PROGRAM_PREFIX
+post-install:
+ set -e; cd ${DESTDIR}${PREFIX}/gnu/bin; \
+ ln -s ../../bin/gunits units
.include "../../devel/readline/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/math/units/PLIST b/math/units/PLIST
index 51b1e70a90a..033a9658b89 100644
--- a/math/units/PLIST
+++ b/math/units/PLIST
@@ -1,5 +1,6 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2006/11/19 04:56:17 obache Exp $
-bin/${GNU_PROGRAM_PREFIX}units
+@comment $NetBSD: PLIST,v 1.2 2012/05/29 18:33:34 cheusov Exp $
+bin/gunits
+gnu/bin/units
info/units.info
-man/man1/${GNU_PROGRAM_PREFIX}units.1
+man/man1/gunits.1
share/units.dat