aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2002-07-24 17:26:24 +0800
committerknu <knu@FreeBSD.org>2002-07-24 17:26:24 +0800
commitf64a8fec3c184c8ad56ea6dd436a1b0b2a7c72e7 (patch)
treefde9c723fca5f2a69334c80ba41b09797bc8f005 /japanese
parente05e7130b53c164756ccf9a785f9ebda599898de (diff)
downloadfreebsd-ports-gnome-f64a8fec3c184c8ad56ea6dd436a1b0b2a7c72e7.tar.gz
freebsd-ports-gnome-f64a8fec3c184c8ad56ea6dd436a1b0b2a7c72e7.tar.zst
freebsd-ports-gnome-f64a8fec3c184c8ad56ea6dd436a1b0b2a7c72e7.zip
Honor PREFIX and LOCALBASE properly.
Pointed out by: "Simon 'corecode' Schubert" <corecode@corecode.ath.cx>
Diffstat (limited to 'japanese')
-rw-r--r--japanese/libjconv/Makefile4
-rw-r--r--japanese/libjconv/files/Makefile17
-rw-r--r--japanese/libjconv/files/Makefile.lib11
-rw-r--r--japanese/libjconv/files/Makefile.prog3
-rw-r--r--japanese/libjconv/files/patch-info.c2
5 files changed, 23 insertions, 14 deletions
diff --git a/japanese/libjconv/Makefile b/japanese/libjconv/Makefile
index dba2752a940f..a98916eb0076 100644
--- a/japanese/libjconv/Makefile
+++ b/japanese/libjconv/Makefile
@@ -15,11 +15,11 @@ MAINTAINER= knu@FreeBSD.org
LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
#RUN_DEPENDS= ${LOCALBASE}/libexec/iconv/iso-2022-jp.so:${PORTSDIR}/converters/iconv-extra
-MAKE_ARGS= NOPROFILE=true
+MAKE_ARGS= NOPROFILE=true PREFIX=${PREFIX} LOCALBASE=${LOCALBASE}
INSTALLS_SHLIB= yes
post-patch:
- ${PERL} -i -pe 's,!!LOCALBASE!!,${LOCALBASE},' ${WRKSRC}/info.c
+ ${PERL} -i -pe 's,!!PREFIX!!,${PREFIX},' ${WRKSRC}/info.c
post-extract:
${CP} ${FILESDIR}/Makefile* ${WRKSRC}/
diff --git a/japanese/libjconv/files/Makefile b/japanese/libjconv/files/Makefile
index 388949b9624d..f89294c3087c 100644
--- a/japanese/libjconv/files/Makefile
+++ b/japanese/libjconv/files/Makefile
@@ -1,13 +1,18 @@
# $FreeBSD$
+PREFIX?= /usr/local
+LOCALBASE?= /usr/local
+
+MAKE_ARGS= PREFIX=${PREFIX} LOCALBASE=${LOCALBASE}
+
all:
- ${MAKE} LOCALBASE=${LOCALBASE} -f Makefile.lib
- ${MAKE} LOCALBASE=${LOCALBASE} -f Makefile.prog
+ ${MAKE} ${MAKE_ARGS} -f Makefile.lib
+ ${MAKE} ${MAKE_ARGS} -f Makefile.prog
install:
- ${MAKE} LOCALBASE=${LOCALBASE} -f Makefile.lib install
- ${MAKE} LOCALBASE=${LOCALBASE} -f Makefile.prog install
+ ${MAKE} ${MAKE_ARGS} -f Makefile.lib install
+ ${MAKE} ${MAKE_ARGS} -f Makefile.prog install
clean:
- ${MAKE} LOCALBASE=${LOCALBASE} -f Makefile.lib clean
- ${MAKE} LOCALBASE=${LOCALBASE} -f Makefile.prog clean
+ ${MAKE} ${MAKE_ARGS} -f Makefile.lib clean
+ ${MAKE} ${MAKE_ARGS} -f Makefile.prog clean
diff --git a/japanese/libjconv/files/Makefile.lib b/japanese/libjconv/files/Makefile.lib
index 7879f5467e30..709ed05f1787 100644
--- a/japanese/libjconv/files/Makefile.lib
+++ b/japanese/libjconv/files/Makefile.lib
@@ -1,17 +1,20 @@
# $FreeBSD$
+PREFIX?= /usr/local
+LOCALBASE?= /usr/local
+
LIB= jconv
SHLIB_MAJOR?= 0
SHLIB_MINOR?= 0
-CFLAGS+= -Wall -I${LOCALBASE}/include -DLOCALBASE=${LOCALBASE}
+CFLAGS+= -Wall -I${LOCALBASE}/include -DPREFIX=${PREFIX}
LDADD= -liconv -L${LOCALBASE}/lib
SRCS= conv.c info.c compat.c
INCS= jconv.h
NOMAN= YES
-LIBDIR= ${LOCALBASE}/lib
-INCSDIR= ${LOCALBASE}/include
+LIBDIR= ${PREFIX}/lib
+INCSDIR= ${PREFIX}/include
INCDIR= ${INCSDIR} # for pre-bsd.incs.mk API
-ETCDIR= ${LOCALBASE}/etc
+ETCDIR= ${PREFIX}/etc
.include <bsd.lib.mk>
diff --git a/japanese/libjconv/files/Makefile.prog b/japanese/libjconv/files/Makefile.prog
index 023771d670b8..9b5140d4de2b 100644
--- a/japanese/libjconv/files/Makefile.prog
+++ b/japanese/libjconv/files/Makefile.prog
@@ -1,5 +1,6 @@
# $FreeBSD$
+PREFIX?= /usr/local
LOCALBASE?= /usr/local
PROG= jconv
@@ -7,6 +8,6 @@ SRCS= jconv.c
CFLAGS+= -I${LOCALBASE}/include
LDADD= -L${.CURDIR} -ljconv
NOMAN= YES
-BINDIR= ${LOCALBASE}/bin
+BINDIR= ${PREFIX}/bin
.include <bsd.prog.mk>
diff --git a/japanese/libjconv/files/patch-info.c b/japanese/libjconv/files/patch-info.c
index f4a6c2c829d3..a92cbc1f8afc 100644
--- a/japanese/libjconv/files/patch-info.c
+++ b/japanese/libjconv/files/patch-info.c
@@ -5,7 +5,7 @@
#define DEBUG_DO(x)
-#define JCONV_DEFAULT_CONFFILE "/etc/libjconv/default.conf"
-+#define JCONV_DEFAULT_CONFFILE "!!LOCALBASE!!/etc/libjconv/default.conf"
++#define JCONV_DEFAULT_CONFFILE "!!PREFIX!!/etc/libjconv/default.conf"
typedef struct {
char *name;