ports/59254: ports that write something after bsd.port.mk

Oliver Eikemeier eikemeier at fillmore-labs.com
Thu Nov 13 14:35:02 PST 2003

David O'Brien wrote:

>>Even though this may be an easy solution for the needs of your port, please 
>>think about an other way to do it.
>>obrien at FreeBSD.org
>> - shells/bash2
>> - vietnamese/unicode-uhoai
> Trust me I have tried to find other ways.  Please send patches.
> For Bash yes bsd.port.mk is broken.  I've tried to get it fixed and I
> don't care to fight that fight anymore.

Hi David,

thank you for your quick feedback.  Please find attached the patches for both of
your Makefiles.  I hope they work, I couldn't really test unicode-uhoai,
unfortunately I don't speak vietnamese. You might want to check anyway, because
there is a `@dirrm lib/X11/fonts/TrueType/vietnamese-unicode' in pkg-plist, but
I couldn't find where the port created it.

You are right with CONFIGURE_TARGET, 359 ports use a workaround, thanks again
for bringing this up. I'm using this workaround myself in the OpenLDAP ports,
and PR 52917 seems to deal with it. At least it should be easy to remove the
workaround from those ports, they all use the same assignment, so it's just a
simple search-and-replace.


--- afterinclude.patch begins here ---
diff -u shells/bash2/Makefile.orig shells/bash2/Makefile
--- shells/bash2/Makefile.orig	19 May 2003 21:33:35 -0000
+++ shells/bash2/Makefile	13 Nov 2003 22:15:06 -0000
@@ -37,6 +37,8 @@
 MAN1=		bash.1 bashbug.1
+CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 CONFIGURE_ARGS+=	--enable-net-redirections
@@ -63,5 +65,3 @@
 .include <bsd.port.post.mk>
diff -u vietnamese/unicode-uhoai/Makefile.orig vietnamese/unicode-uhoai/Makefile
--- vietnamese/unicode-uhoai/Makefile.orig	7 Mar 2003 06:11:48 -0000
+++ vietnamese/unicode-uhoai/Makefile	13 Nov 2003 22:14:09 -0000
@@ -20,6 +20,8 @@
 NO_BUILD=	taken care of in do-install target
 .include <bsd.port.pre.mk>
 BUILD_DEPENDS=	ttmkfdir:${PORTSDIR}/x11-fonts/ttmkfdir
@@ -36,5 +38,3 @@
 .include <bsd.port.post.mk>
--- afterinclude.patch ends here ---

More information about the freebsd-ports mailing list