aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/qiv
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>2000-02-13 07:31:59 +0800
committerbillf <billf@FreeBSD.org>2000-02-13 07:31:59 +0800
commite33143542e1912777ab05005cb304e891c742288 (patch)
tree1a7bad66b2565a9f1dc20b86d904bdef742ad0f1 /graphics/qiv
parent0118c8349b17573caefd4e366fda55f6fc9b4de6 (diff)
downloadfreebsd-ports-gnome-e33143542e1912777ab05005cb304e891c742288.tar.gz
freebsd-ports-gnome-e33143542e1912777ab05005cb304e891c742288.tar.zst
freebsd-ports-gnome-e33143542e1912777ab05005cb304e891c742288.zip
Update port to 1.2, and make the sed logic more intelligent (thanks!).
PR: ports/16678 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Diffstat (limited to 'graphics/qiv')
-rw-r--r--graphics/qiv/Makefile23
-rw-r--r--graphics/qiv/distinfo2
2 files changed, 14 insertions, 11 deletions
diff --git a/graphics/qiv/Makefile b/graphics/qiv/Makefile
index 114b5abad83a..fe31ccf1a2db 100644
--- a/graphics/qiv/Makefile
+++ b/graphics/qiv/Makefile
@@ -1,14 +1,14 @@
-# New ports collection makefile for: qiv
-# Version required: 1.0
-# Date created: 25 December 1998
-# Whom: Bill Fumerola <billf@chc-chimes.com>
+# New ports collection makefile for: qiv
+# Version required: 1.2
+# Date created: 25 December 1998
+# Whom: Bill Fumerola <billf@chc-chimes.com>
#
# $FreeBSD$
#
-DISTNAME= qiv-1.1
+DISTNAME= qiv-1.2
CATEGORIES= graphics
-MASTER_SITES= http://www.klografx.de/software/files/ \
+MASTER_SITES= http://www.klografx.de/software/files/ \
ftp://ftp.klografx.de/pub/
EXTRACT_SUFX= .tgz
@@ -20,13 +20,16 @@ USE_X_PREFIX= yes
USE_GMAKE= yes
MAN1= qiv.1
-post-patch:
+do-configure:
@ ${MV} ${WRKSRC}/qiv.1 ${WRKSRC}/qiv.1.pre_sed
@ ${SED} -e 's#\/usr\/bin#${PREFIX}/bin#g' \
- ${WRKSRC}/qiv.1.pre_sed > ${WRKSRC}/qiv.1
+ ${WRKSRC}/qiv.1.pre_sed > ${WRKSRC}/qiv.1
@ ${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.pre_sed
- @ ${SED} -e 's#RANDOM GETOPT_LONG#RANDOM#' \
- ${WRKSRC}/Makefile.pre_sed > ${WRKSRC}/Makefile
+ @ ${SED} -e 's#\/usr\/local#${PREFIX}#' \
+ -e 's#RANDOM GETOPT_LONG#RANDOM#' \
+ -e 's#gcc#${CC}#' \
+ -e 's#-O2#${CFLAGS}#' \
+ ${WRKSRC}/Makefile.pre_sed > ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/qiv ${PREFIX}/bin/
diff --git a/graphics/qiv/distinfo b/graphics/qiv/distinfo
index cbcb8b38fd03..13b85c4a8591 100644
--- a/graphics/qiv/distinfo
+++ b/graphics/qiv/distinfo
@@ -1 +1 @@
-MD5 (qiv-1.1.tgz) = bdb97ef0100e68821248e41307b7afa4
+MD5 (qiv-1.2.tgz) = 4c9e7c72ea0ab7670c2fcbe6679bda71