aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2006-05-08 00:39:29 +0800
committermarius <marius@FreeBSD.org>2006-05-08 00:39:29 +0800
commit2cb2dba136adadeb42826eb8d61448435c3945e4 (patch)
tree6647f2f81a889c397def5e6bd8f79bf6b23078a3
parent6299b8c7cb8e44e6a7a36cae783ff5610886746a (diff)
downloadfreebsd-ports-gnome-2cb2dba136adadeb42826eb8d61448435c3945e4.tar.gz
freebsd-ports-gnome-2cb2dba136adadeb42826eb8d61448435c3945e4.tar.zst
freebsd-ports-gnome-2cb2dba136adadeb42826eb8d61448435c3945e4.zip
- Allow this port to be compiled with CC set to something containing a
path component. [1] - Add the usual MAKE_ENV=LANG=C workaround in order to prevent problems from bad interactions of gmake, the Schily makefile system and certain locales. Requested by: kris [1] Approved by: netchild
-rw-r--r--sysutils/sformat/Makefile12
-rw-r--r--sysutils/sformat/files/patch-RULES::i386-freebsd-cc.rul9
2 files changed, 11 insertions, 10 deletions
diff --git a/sysutils/sformat/Makefile b/sysutils/sformat/Makefile
index 029ae87bd3c4..a8b125c2d1da 100644
--- a/sysutils/sformat/Makefile
+++ b/sysutils/sformat/Makefile
@@ -19,23 +19,23 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= marius@FreeBSD.org
COMMENT= Allows formatting/partitioning/analysis/repairing of SCSI disks
+LIBSCHILY= libschily-2.01.01a07.tar.gz
USE_GMAKE= yes
-
MAN1= sformat.1
-LIBSCHILY= libschily-2.01.01a07.tar.gz
-MAKE_ENV= CCOM=${CC}
-SFMTTARGET= ${ARCH}-freebsd-${CC}
-
.include <bsd.port.pre.mk>
+CCOM!= ${BASENAME} ${CC}
+MAKE_ENV= CCOM=${CCOM} LANG=C
+SFMTTARGET= ${ARCH}-freebsd-${CCOM}
+
post-extract:
@cd ${WRKSRC} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
${DISTDIR}/${DIST_SUBDIR}/${LIBSCHILY} ${EXTRACT_AFTER_ARGS}
.for i in config.guess config.sub
@${CP} ${PORTSDIR}/Templates/${i} ${WRKSRC}/conf
.endfor
-.if ${ARCH} != "i386" || ${CC} != "cc"
+.if ${SFMTTARGET} != "i386-freebsd-cc"
@${LN} -sf ${WRKSRC}/RULES/i386-freebsd-cc.rul \
${WRKSRC}/RULES/${SFMTTARGET}.rul
.endif
diff --git a/sysutils/sformat/files/patch-RULES::i386-freebsd-cc.rul b/sysutils/sformat/files/patch-RULES::i386-freebsd-cc.rul
index fe40bd525bc9..1b76323e1ac7 100644
--- a/sysutils/sformat/files/patch-RULES::i386-freebsd-cc.rul
+++ b/sysutils/sformat/files/patch-RULES::i386-freebsd-cc.rul
@@ -10,7 +10,7 @@
CPPOPTS= -I. -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS)
COPTS=
-@@ -57,14 +58,13 @@
+@@ -57,14 +58,14 @@
FLOAT_OPTIONS=
@@ -18,8 +18,9 @@
-LDCC= @echo " ==> LINKING \"$@\""; gcc
-DYNLD= @echo " ==> LINKING dynamic library \"$@\""; gcc
-RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib
-+LDCC= $(CCOM)
-+DYNLD= $(CCOM)
++CCCOM= $(CC)
++LDCC= $(CCCOM)
++DYNLD= $(CCCOM)
+RANLIB= ranlib
ARFLAGS= cr
LORDER= lorder
@@ -27,5 +28,5 @@
RMDEP= :
-MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); gcc -M
-+MKDEP= $(CCOM) -M
++MKDEP= $(CCCOM) -M
MKDEP_OUT=