aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcpiazza <cpiazza@FreeBSD.org>1999-08-29 00:58:27 +0800
committercpiazza <cpiazza@FreeBSD.org>1999-08-29 00:58:27 +0800
commita295d1348bea4520f81bd151c3bc02dd148250af (patch)
treee8b90d7255d09d81648d80bbe5262a212e596510
parentdc17a362cf32861497624a9b58d8730de223b5ee (diff)
downloadfreebsd-ports-gnome-a295d1348bea4520f81bd151c3bc02dd148250af.tar.gz
freebsd-ports-gnome-a295d1348bea4520f81bd151c3bc02dd148250af.tar.zst
freebsd-ports-gnome-a295d1348bea4520f81bd151c3bc02dd148250af.zip
Make this port a little more sane. It was broken
for any system that wasn't x86 on freebsd 3.1. The port is still marked BROKEN because it sets PREFIX in the Makefile. PR: 13423 Submitted by: Ade Lovett <ade@lovett.com>
-rw-r--r--devel/gnustep-make/Makefile20
-rw-r--r--devel/gnustep-make/pkg-plist86
-rw-r--r--devel/gnustep/Makefile20
-rw-r--r--devel/gnustep/pkg-plist86
-rw-r--r--lang/gnustep-base/Makefile20
-rw-r--r--lang/gnustep-base/pkg-plist86
-rw-r--r--lang/gnustep-guile/Makefile20
-rw-r--r--lang/gnustep-guile/pkg-plist86
-rw-r--r--lang/gnustep-objc/Makefile20
-rw-r--r--lang/gnustep-objc/pkg-plist86
-rw-r--r--x11-toolkits/gnustep-gui/Makefile20
-rw-r--r--x11-toolkits/gnustep-gui/pkg-plist86
-rw-r--r--x11-toolkits/gnustep-xgps/Makefile20
-rw-r--r--x11-toolkits/gnustep-xgps/pkg-plist86
14 files changed, 294 insertions, 448 deletions
diff --git a/devel/gnustep-make/Makefile b/devel/gnustep-make/Makefile
index e2e198afe3cd..3825abbddac3 100644
--- a/devel/gnustep-make/Makefile
+++ b/devel/gnustep-make/Makefile
@@ -17,13 +17,21 @@ MAINTAINER= ports@FreeBSD.ORG
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff34
+BROKEN= "Sets PREFIX in the Makefile"
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 300000
BROKEN= "Sorry, this port does not work on FreeBSD-2.2.x"
.endif
-BROKEN= "Hardcoded freebsd release numbers in PLIST"
+.if ${MACHINE_ARCH} == "i386"
+GNU_ARCH= ix86
+.else
+GNU_ARCH= ${MACHINE_ARCH}
+.endif
+GNU_HOST= freebsd${OSREL}
+PLIST_SUB+= GNU_ARCH=${GNU_ARCH} GNU_HOST=${GNU_HOST}
WRKSRC= ${WRKDIR}/gstep-0.5.5
PREFIX= ${LOCALBASE}/GNUstep
@@ -41,14 +49,4 @@ MAKE_FLAGS= OPTFLAG="${CFLAGS}"
NO_MTREE= yes
USE_NEWGCC= yes
-GNUSTEPLIBDIR= ${PREFIX}/Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-
-post-install:
-.for lib in gmodel gnustep-base gnustep-gui gnustep-xraw
- ${LN} -sf ${GNUSTEPLIBDIR}/lib${lib}.so ${LOCALBASE}/lib/lib${lib}.so
- ${LN} -sf ${GNUSTEPLIBDIR}/lib${lib}.so.0.5.5 \
- ${LOCALBASE}/lib/lib${lib}.so.0.5.5
-.endfor
- ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${LOCALBASE}/lib
-
.include <bsd.port.post.mk>
diff --git a/devel/gnustep-make/pkg-plist b/devel/gnustep-make/pkg-plist
index b0391a0a1968..ca97beb44ddf 100644
--- a/devel/gnustep-make/pkg-plist
+++ b/devel/gnustep-make/pkg-plist
@@ -265,8 +265,8 @@ Headers/gnustep/xraw/XRView.h
Headers/gnustep/xraw/XRWindow.h
Headers/gnustep/xraw/XRWindowView.h
Headers/gnustep/xraw/stdxr.h
-Headers/ix86/freebsd3.1/GSConfig.h
-Headers/ix86/freebsd3.1/mframe.h
+Headers/%%GNU_ARCH%%/%%GNU_HOST%%/GSConfig.h
+Headers/%%GNU_ARCH%%/%%GNU_HOST%%/mframe.h
Libraries/Resources/Images/GNUstep_Images_Copyright
Libraries/Resources/Images/common_ArrowDown.tiff
Libraries/Resources/Images/common_ArrowDownH.tiff
@@ -805,33 +805,13 @@ Libraries/Resources/gnustep/NSTimeZones/zones/Universal
Libraries/Resources/gnustep/NSTimeZones/zones/W-SU
Libraries/Resources/gnustep/NSTimeZones/zones/WET
Libraries/Resources/gnustep/NSTimeZones/zones/Zulu
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgmodel.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgmodel.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-base.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-base.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-gui.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-gui.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-xraw.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-xraw.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgmodel_s.a
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgnustep-base_s.a
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgnustep-gui_s.a
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgnustep-xraw_s.a
Library/Model/SavePanel.gmodel
Library/Services/example.service/Resources/Info-gnustep.plist
-Library/Services/example.service/ix86/freebsd3.1/gnu-gnu-gnu-xraw/example
+Library/Services/example.service/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/example
Makefiles/GNUstep.csh
Makefiles/GNUstep.sh
Makefiles/MediaBook.func
@@ -849,8 +829,8 @@ Makefiles/config.sub
Makefiles/cpu.sh
Makefiles/documentation.make
Makefiles/install-sh
-Makefiles/ix86/freebsd3.1/config.make
-Makefiles/ix86/freebsd3.1/which_lib
+Makefiles/%%GNU_ARCH%%/%%GNU_HOST%%/config.make
+Makefiles/%%GNU_ARCH%%/%%GNU_HOST%%/which_lib
Makefiles/ld_lib_path.csh
Makefiles/ld_lib_path.sh
Makefiles/library.make
@@ -871,42 +851,42 @@ Makefiles/tool.make
Makefiles/transform_paths.sh
Makefiles/vendor.sh
Tools/debugapp
-Tools/ix86/freebsd3.1/gdomap
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/defaults
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/dread
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/dremove
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/dwrite
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/gdnc
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/gpbs
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/make_services
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/plparse
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/set_show_service
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/sfparse
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gdomap
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/defaults
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/dread
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/dremove
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/dwrite
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/gdnc
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/gpbs
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/make_services
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/plparse
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/set_show_service
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/sfparse
Tools/openapp
Tools/opentool
share/config.site
@dirrm share
-@dirrm Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-@dirrm Tools/ix86/freebsd3.1
-@dirrm Tools/ix86
+@dirrm Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw
+@dirrm Tools/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Tools/%%GNU_ARCH%%
@dirrm Tools
-@dirrm Makefiles/ix86/freebsd3.1
-@dirrm Makefiles/ix86
+@dirrm Makefiles/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Makefiles/%%GNU_ARCH%%
@dirrm Makefiles
@dirrm Library/man
@dirrm Library/info
-@dirrm Library/Services/example.service/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-@dirrm Library/Services/example.service/ix86/freebsd3.1
-@dirrm Library/Services/example.service/ix86
+@dirrm Library/Services/example.service/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw
+@dirrm Library/Services/example.service/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Library/Services/example.service/%%GNU_ARCH%%
@dirrm Library/Services/example.service/Resources
@dirrm Library/Services/example.service
@dirrm Library/Services
@dirrm Library/PostScript
@dirrm Library/Model
@dirrm Library
-@dirrm Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-@dirrm Libraries/ix86/freebsd3.1
-@dirrm Libraries/ix86
+@dirrm Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw
+@dirrm Libraries/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Libraries/%%GNU_ARCH%%
@dirrm Libraries/Resources/gnustep/NSTimeZones/zones/US
@dirrm Libraries/Resources/gnustep/NSTimeZones/zones/SystemV
@dirrm Libraries/Resources/gnustep/NSTimeZones/zones/Pacific
@@ -933,8 +913,8 @@ share/config.site
@dirrm Libraries/Resources/Images
@dirrm Libraries/Resources
@dirrm Libraries
-@dirrm Headers/ix86/freebsd3.1
-@dirrm Headers/ix86
+@dirrm Headers/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Headers/%%GNU_ARCH%%
@dirrm Headers/gnustep/xraw
@dirrm Headers/gnustep/unicode
@dirrm Headers/gnustep/gui/AppKit
diff --git a/devel/gnustep/Makefile b/devel/gnustep/Makefile
index e2e198afe3cd..3825abbddac3 100644
--- a/devel/gnustep/Makefile
+++ b/devel/gnustep/Makefile
@@ -17,13 +17,21 @@ MAINTAINER= ports@FreeBSD.ORG
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff34
+BROKEN= "Sets PREFIX in the Makefile"
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 300000
BROKEN= "Sorry, this port does not work on FreeBSD-2.2.x"
.endif
-BROKEN= "Hardcoded freebsd release numbers in PLIST"
+.if ${MACHINE_ARCH} == "i386"
+GNU_ARCH= ix86
+.else
+GNU_ARCH= ${MACHINE_ARCH}
+.endif
+GNU_HOST= freebsd${OSREL}
+PLIST_SUB+= GNU_ARCH=${GNU_ARCH} GNU_HOST=${GNU_HOST}
WRKSRC= ${WRKDIR}/gstep-0.5.5
PREFIX= ${LOCALBASE}/GNUstep
@@ -41,14 +49,4 @@ MAKE_FLAGS= OPTFLAG="${CFLAGS}"
NO_MTREE= yes
USE_NEWGCC= yes
-GNUSTEPLIBDIR= ${PREFIX}/Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-
-post-install:
-.for lib in gmodel gnustep-base gnustep-gui gnustep-xraw
- ${LN} -sf ${GNUSTEPLIBDIR}/lib${lib}.so ${LOCALBASE}/lib/lib${lib}.so
- ${LN} -sf ${GNUSTEPLIBDIR}/lib${lib}.so.0.5.5 \
- ${LOCALBASE}/lib/lib${lib}.so.0.5.5
-.endfor
- ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${LOCALBASE}/lib
-
.include <bsd.port.post.mk>
diff --git a/devel/gnustep/pkg-plist b/devel/gnustep/pkg-plist
index b0391a0a1968..ca97beb44ddf 100644
--- a/devel/gnustep/pkg-plist
+++ b/devel/gnustep/pkg-plist
@@ -265,8 +265,8 @@ Headers/gnustep/xraw/XRView.h
Headers/gnustep/xraw/XRWindow.h
Headers/gnustep/xraw/XRWindowView.h
Headers/gnustep/xraw/stdxr.h
-Headers/ix86/freebsd3.1/GSConfig.h
-Headers/ix86/freebsd3.1/mframe.h
+Headers/%%GNU_ARCH%%/%%GNU_HOST%%/GSConfig.h
+Headers/%%GNU_ARCH%%/%%GNU_HOST%%/mframe.h
Libraries/Resources/Images/GNUstep_Images_Copyright
Libraries/Resources/Images/common_ArrowDown.tiff
Libraries/Resources/Images/common_ArrowDownH.tiff
@@ -805,33 +805,13 @@ Libraries/Resources/gnustep/NSTimeZones/zones/Universal
Libraries/Resources/gnustep/NSTimeZones/zones/W-SU
Libraries/Resources/gnustep/NSTimeZones/zones/WET
Libraries/Resources/gnustep/NSTimeZones/zones/Zulu
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgmodel.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgmodel.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-base.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-base.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-gui.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-gui.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-xraw.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-xraw.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgmodel_s.a
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgnustep-base_s.a
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgnustep-gui_s.a
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgnustep-xraw_s.a
Library/Model/SavePanel.gmodel
Library/Services/example.service/Resources/Info-gnustep.plist
-Library/Services/example.service/ix86/freebsd3.1/gnu-gnu-gnu-xraw/example
+Library/Services/example.service/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/example
Makefiles/GNUstep.csh
Makefiles/GNUstep.sh
Makefiles/MediaBook.func
@@ -849,8 +829,8 @@ Makefiles/config.sub
Makefiles/cpu.sh
Makefiles/documentation.make
Makefiles/install-sh
-Makefiles/ix86/freebsd3.1/config.make
-Makefiles/ix86/freebsd3.1/which_lib
+Makefiles/%%GNU_ARCH%%/%%GNU_HOST%%/config.make
+Makefiles/%%GNU_ARCH%%/%%GNU_HOST%%/which_lib
Makefiles/ld_lib_path.csh
Makefiles/ld_lib_path.sh
Makefiles/library.make
@@ -871,42 +851,42 @@ Makefiles/tool.make
Makefiles/transform_paths.sh
Makefiles/vendor.sh
Tools/debugapp
-Tools/ix86/freebsd3.1/gdomap
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/defaults
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/dread
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/dremove
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/dwrite
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/gdnc
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/gpbs
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/make_services
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/plparse
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/set_show_service
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/sfparse
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gdomap
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/defaults
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/dread
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/dremove
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/dwrite
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/gdnc
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/gpbs
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/make_services
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/plparse
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/set_show_service
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/sfparse
Tools/openapp
Tools/opentool
share/config.site
@dirrm share
-@dirrm Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-@dirrm Tools/ix86/freebsd3.1
-@dirrm Tools/ix86
+@dirrm Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw
+@dirrm Tools/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Tools/%%GNU_ARCH%%
@dirrm Tools
-@dirrm Makefiles/ix86/freebsd3.1
-@dirrm Makefiles/ix86
+@dirrm Makefiles/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Makefiles/%%GNU_ARCH%%
@dirrm Makefiles
@dirrm Library/man
@dirrm Library/info
-@dirrm Library/Services/example.service/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-@dirrm Library/Services/example.service/ix86/freebsd3.1
-@dirrm Library/Services/example.service/ix86
+@dirrm Library/Services/example.service/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw
+@dirrm Library/Services/example.service/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Library/Services/example.service/%%GNU_ARCH%%
@dirrm Library/Services/example.service/Resources
@dirrm Library/Services/example.service
@dirrm Library/Services
@dirrm Library/PostScript
@dirrm Library/Model
@dirrm Library
-@dirrm Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-@dirrm Libraries/ix86/freebsd3.1
-@dirrm Libraries/ix86
+@dirrm Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw
+@dirrm Libraries/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Libraries/%%GNU_ARCH%%
@dirrm Libraries/Resources/gnustep/NSTimeZones/zones/US
@dirrm Libraries/Resources/gnustep/NSTimeZones/zones/SystemV
@dirrm Libraries/Resources/gnustep/NSTimeZones/zones/Pacific
@@ -933,8 +913,8 @@ share/config.site
@dirrm Libraries/Resources/Images
@dirrm Libraries/Resources
@dirrm Libraries
-@dirrm Headers/ix86/freebsd3.1
-@dirrm Headers/ix86
+@dirrm Headers/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Headers/%%GNU_ARCH%%
@dirrm Headers/gnustep/xraw
@dirrm Headers/gnustep/unicode
@dirrm Headers/gnustep/gui/AppKit
diff --git a/lang/gnustep-base/Makefile b/lang/gnustep-base/Makefile
index e2e198afe3cd..3825abbddac3 100644
--- a/lang/gnustep-base/Makefile
+++ b/lang/gnustep-base/Makefile
@@ -17,13 +17,21 @@ MAINTAINER= ports@FreeBSD.ORG
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff34
+BROKEN= "Sets PREFIX in the Makefile"
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 300000
BROKEN= "Sorry, this port does not work on FreeBSD-2.2.x"
.endif
-BROKEN= "Hardcoded freebsd release numbers in PLIST"
+.if ${MACHINE_ARCH} == "i386"
+GNU_ARCH= ix86
+.else
+GNU_ARCH= ${MACHINE_ARCH}
+.endif
+GNU_HOST= freebsd${OSREL}
+PLIST_SUB+= GNU_ARCH=${GNU_ARCH} GNU_HOST=${GNU_HOST}
WRKSRC= ${WRKDIR}/gstep-0.5.5
PREFIX= ${LOCALBASE}/GNUstep
@@ -41,14 +49,4 @@ MAKE_FLAGS= OPTFLAG="${CFLAGS}"
NO_MTREE= yes
USE_NEWGCC= yes
-GNUSTEPLIBDIR= ${PREFIX}/Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-
-post-install:
-.for lib in gmodel gnustep-base gnustep-gui gnustep-xraw
- ${LN} -sf ${GNUSTEPLIBDIR}/lib${lib}.so ${LOCALBASE}/lib/lib${lib}.so
- ${LN} -sf ${GNUSTEPLIBDIR}/lib${lib}.so.0.5.5 \
- ${LOCALBASE}/lib/lib${lib}.so.0.5.5
-.endfor
- ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${LOCALBASE}/lib
-
.include <bsd.port.post.mk>
diff --git a/lang/gnustep-base/pkg-plist b/lang/gnustep-base/pkg-plist
index b0391a0a1968..ca97beb44ddf 100644
--- a/lang/gnustep-base/pkg-plist
+++ b/lang/gnustep-base/pkg-plist
@@ -265,8 +265,8 @@ Headers/gnustep/xraw/XRView.h
Headers/gnustep/xraw/XRWindow.h
Headers/gnustep/xraw/XRWindowView.h
Headers/gnustep/xraw/stdxr.h
-Headers/ix86/freebsd3.1/GSConfig.h
-Headers/ix86/freebsd3.1/mframe.h
+Headers/%%GNU_ARCH%%/%%GNU_HOST%%/GSConfig.h
+Headers/%%GNU_ARCH%%/%%GNU_HOST%%/mframe.h
Libraries/Resources/Images/GNUstep_Images_Copyright
Libraries/Resources/Images/common_ArrowDown.tiff
Libraries/Resources/Images/common_ArrowDownH.tiff
@@ -805,33 +805,13 @@ Libraries/Resources/gnustep/NSTimeZones/zones/Universal
Libraries/Resources/gnustep/NSTimeZones/zones/W-SU
Libraries/Resources/gnustep/NSTimeZones/zones/WET
Libraries/Resources/gnustep/NSTimeZones/zones/Zulu
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgmodel.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgmodel.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-base.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-base.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-gui.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-gui.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-xraw.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-xraw.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgmodel_s.a
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgnustep-base_s.a
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgnustep-gui_s.a
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgnustep-xraw_s.a
Library/Model/SavePanel.gmodel
Library/Services/example.service/Resources/Info-gnustep.plist
-Library/Services/example.service/ix86/freebsd3.1/gnu-gnu-gnu-xraw/example
+Library/Services/example.service/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/example
Makefiles/GNUstep.csh
Makefiles/GNUstep.sh
Makefiles/MediaBook.func
@@ -849,8 +829,8 @@ Makefiles/config.sub
Makefiles/cpu.sh
Makefiles/documentation.make
Makefiles/install-sh
-Makefiles/ix86/freebsd3.1/config.make
-Makefiles/ix86/freebsd3.1/which_lib
+Makefiles/%%GNU_ARCH%%/%%GNU_HOST%%/config.make
+Makefiles/%%GNU_ARCH%%/%%GNU_HOST%%/which_lib
Makefiles/ld_lib_path.csh
Makefiles/ld_lib_path.sh
Makefiles/library.make
@@ -871,42 +851,42 @@ Makefiles/tool.make
Makefiles/transform_paths.sh
Makefiles/vendor.sh
Tools/debugapp
-Tools/ix86/freebsd3.1/gdomap
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/defaults
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/dread
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/dremove
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/dwrite
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/gdnc
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/gpbs
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/make_services
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/plparse
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/set_show_service
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/sfparse
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gdomap
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/defaults
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/dread
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/dremove
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/dwrite
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/gdnc
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/gpbs
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/make_services
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/plparse
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/set_show_service
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/sfparse
Tools/openapp
Tools/opentool
share/config.site
@dirrm share
-@dirrm Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-@dirrm Tools/ix86/freebsd3.1
-@dirrm Tools/ix86
+@dirrm Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw
+@dirrm Tools/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Tools/%%GNU_ARCH%%
@dirrm Tools
-@dirrm Makefiles/ix86/freebsd3.1
-@dirrm Makefiles/ix86
+@dirrm Makefiles/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Makefiles/%%GNU_ARCH%%
@dirrm Makefiles
@dirrm Library/man
@dirrm Library/info
-@dirrm Library/Services/example.service/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-@dirrm Library/Services/example.service/ix86/freebsd3.1
-@dirrm Library/Services/example.service/ix86
+@dirrm Library/Services/example.service/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw
+@dirrm Library/Services/example.service/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Library/Services/example.service/%%GNU_ARCH%%
@dirrm Library/Services/example.service/Resources
@dirrm Library/Services/example.service
@dirrm Library/Services
@dirrm Library/PostScript
@dirrm Library/Model
@dirrm Library
-@dirrm Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-@dirrm Libraries/ix86/freebsd3.1
-@dirrm Libraries/ix86
+@dirrm Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw
+@dirrm Libraries/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Libraries/%%GNU_ARCH%%
@dirrm Libraries/Resources/gnustep/NSTimeZones/zones/US
@dirrm Libraries/Resources/gnustep/NSTimeZones/zones/SystemV
@dirrm Libraries/Resources/gnustep/NSTimeZones/zones/Pacific
@@ -933,8 +913,8 @@ share/config.site
@dirrm Libraries/Resources/Images
@dirrm Libraries/Resources
@dirrm Libraries
-@dirrm Headers/ix86/freebsd3.1
-@dirrm Headers/ix86
+@dirrm Headers/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Headers/%%GNU_ARCH%%
@dirrm Headers/gnustep/xraw
@dirrm Headers/gnustep/unicode
@dirrm Headers/gnustep/gui/AppKit
diff --git a/lang/gnustep-guile/Makefile b/lang/gnustep-guile/Makefile
index e2e198afe3cd..3825abbddac3 100644
--- a/lang/gnustep-guile/Makefile
+++ b/lang/gnustep-guile/Makefile
@@ -17,13 +17,21 @@ MAINTAINER= ports@FreeBSD.ORG
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff34
+BROKEN= "Sets PREFIX in the Makefile"
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 300000
BROKEN= "Sorry, this port does not work on FreeBSD-2.2.x"
.endif
-BROKEN= "Hardcoded freebsd release numbers in PLIST"
+.if ${MACHINE_ARCH} == "i386"
+GNU_ARCH= ix86
+.else
+GNU_ARCH= ${MACHINE_ARCH}
+.endif
+GNU_HOST= freebsd${OSREL}
+PLIST_SUB+= GNU_ARCH=${GNU_ARCH} GNU_HOST=${GNU_HOST}
WRKSRC= ${WRKDIR}/gstep-0.5.5
PREFIX= ${LOCALBASE}/GNUstep
@@ -41,14 +49,4 @@ MAKE_FLAGS= OPTFLAG="${CFLAGS}"
NO_MTREE= yes
USE_NEWGCC= yes
-GNUSTEPLIBDIR= ${PREFIX}/Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-
-post-install:
-.for lib in gmodel gnustep-base gnustep-gui gnustep-xraw
- ${LN} -sf ${GNUSTEPLIBDIR}/lib${lib}.so ${LOCALBASE}/lib/lib${lib}.so
- ${LN} -sf ${GNUSTEPLIBDIR}/lib${lib}.so.0.5.5 \
- ${LOCALBASE}/lib/lib${lib}.so.0.5.5
-.endfor
- ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${LOCALBASE}/lib
-
.include <bsd.port.post.mk>
diff --git a/lang/gnustep-guile/pkg-plist b/lang/gnustep-guile/pkg-plist
index b0391a0a1968..ca97beb44ddf 100644
--- a/lang/gnustep-guile/pkg-plist
+++ b/lang/gnustep-guile/pkg-plist
@@ -265,8 +265,8 @@ Headers/gnustep/xraw/XRView.h
Headers/gnustep/xraw/XRWindow.h
Headers/gnustep/xraw/XRWindowView.h
Headers/gnustep/xraw/stdxr.h
-Headers/ix86/freebsd3.1/GSConfig.h
-Headers/ix86/freebsd3.1/mframe.h
+Headers/%%GNU_ARCH%%/%%GNU_HOST%%/GSConfig.h
+Headers/%%GNU_ARCH%%/%%GNU_HOST%%/mframe.h
Libraries/Resources/Images/GNUstep_Images_Copyright
Libraries/Resources/Images/common_ArrowDown.tiff
Libraries/Resources/Images/common_ArrowDownH.tiff
@@ -805,33 +805,13 @@ Libraries/Resources/gnustep/NSTimeZones/zones/Universal
Libraries/Resources/gnustep/NSTimeZones/zones/W-SU
Libraries/Resources/gnustep/NSTimeZones/zones/WET
Libraries/Resources/gnustep/NSTimeZones/zones/Zulu
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgmodel.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgmodel.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-base.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-base.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-gui.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-gui.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-xraw.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-xraw.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgmodel_s.a
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgnustep-base_s.a
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgnustep-gui_s.a
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgnustep-xraw_s.a
Library/Model/SavePanel.gmodel
Library/Services/example.service/Resources/Info-gnustep.plist
-Library/Services/example.service/ix86/freebsd3.1/gnu-gnu-gnu-xraw/example
+Library/Services/example.service/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/example
Makefiles/GNUstep.csh
Makefiles/GNUstep.sh
Makefiles/MediaBook.func
@@ -849,8 +829,8 @@ Makefiles/config.sub
Makefiles/cpu.sh
Makefiles/documentation.make
Makefiles/install-sh
-Makefiles/ix86/freebsd3.1/config.make
-Makefiles/ix86/freebsd3.1/which_lib
+Makefiles/%%GNU_ARCH%%/%%GNU_HOST%%/config.make
+Makefiles/%%GNU_ARCH%%/%%GNU_HOST%%/which_lib
Makefiles/ld_lib_path.csh
Makefiles/ld_lib_path.sh
Makefiles/library.make
@@ -871,42 +851,42 @@ Makefiles/tool.make
Makefiles/transform_paths.sh
Makefiles/vendor.sh
Tools/debugapp
-Tools/ix86/freebsd3.1/gdomap
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/defaults
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/dread
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/dremove
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/dwrite
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/gdnc
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/gpbs
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/make_services
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/plparse
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/set_show_service
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/sfparse
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gdomap
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/defaults
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/dread
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/dremove
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/dwrite
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/gdnc
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/gpbs
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/make_services
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/plparse
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/set_show_service
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/sfparse
Tools/openapp
Tools/opentool
share/config.site
@dirrm share
-@dirrm Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-@dirrm Tools/ix86/freebsd3.1
-@dirrm Tools/ix86
+@dirrm Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw
+@dirrm Tools/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Tools/%%GNU_ARCH%%
@dirrm Tools
-@dirrm Makefiles/ix86/freebsd3.1
-@dirrm Makefiles/ix86
+@dirrm Makefiles/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Makefiles/%%GNU_ARCH%%
@dirrm Makefiles
@dirrm Library/man
@dirrm Library/info
-@dirrm Library/Services/example.service/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-@dirrm Library/Services/example.service/ix86/freebsd3.1
-@dirrm Library/Services/example.service/ix86
+@dirrm Library/Services/example.service/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw
+@dirrm Library/Services/example.service/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Library/Services/example.service/%%GNU_ARCH%%
@dirrm Library/Services/example.service/Resources
@dirrm Library/Services/example.service
@dirrm Library/Services
@dirrm Library/PostScript
@dirrm Library/Model
@dirrm Library
-@dirrm Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-@dirrm Libraries/ix86/freebsd3.1
-@dirrm Libraries/ix86
+@dirrm Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw
+@dirrm Libraries/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Libraries/%%GNU_ARCH%%
@dirrm Libraries/Resources/gnustep/NSTimeZones/zones/US
@dirrm Libraries/Resources/gnustep/NSTimeZones/zones/SystemV
@dirrm Libraries/Resources/gnustep/NSTimeZones/zones/Pacific
@@ -933,8 +913,8 @@ share/config.site
@dirrm Libraries/Resources/Images
@dirrm Libraries/Resources
@dirrm Libraries
-@dirrm Headers/ix86/freebsd3.1
-@dirrm Headers/ix86
+@dirrm Headers/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Headers/%%GNU_ARCH%%
@dirrm Headers/gnustep/xraw
@dirrm Headers/gnustep/unicode
@dirrm Headers/gnustep/gui/AppKit
diff --git a/lang/gnustep-objc/Makefile b/lang/gnustep-objc/Makefile
index e2e198afe3cd..3825abbddac3 100644
--- a/lang/gnustep-objc/Makefile
+++ b/lang/gnustep-objc/Makefile
@@ -17,13 +17,21 @@ MAINTAINER= ports@FreeBSD.ORG
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff34
+BROKEN= "Sets PREFIX in the Makefile"
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 300000
BROKEN= "Sorry, this port does not work on FreeBSD-2.2.x"
.endif
-BROKEN= "Hardcoded freebsd release numbers in PLIST"
+.if ${MACHINE_ARCH} == "i386"
+GNU_ARCH= ix86
+.else
+GNU_ARCH= ${MACHINE_ARCH}
+.endif
+GNU_HOST= freebsd${OSREL}
+PLIST_SUB+= GNU_ARCH=${GNU_ARCH} GNU_HOST=${GNU_HOST}
WRKSRC= ${WRKDIR}/gstep-0.5.5
PREFIX= ${LOCALBASE}/GNUstep
@@ -41,14 +49,4 @@ MAKE_FLAGS= OPTFLAG="${CFLAGS}"
NO_MTREE= yes
USE_NEWGCC= yes
-GNUSTEPLIBDIR= ${PREFIX}/Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-
-post-install:
-.for lib in gmodel gnustep-base gnustep-gui gnustep-xraw
- ${LN} -sf ${GNUSTEPLIBDIR}/lib${lib}.so ${LOCALBASE}/lib/lib${lib}.so
- ${LN} -sf ${GNUSTEPLIBDIR}/lib${lib}.so.0.5.5 \
- ${LOCALBASE}/lib/lib${lib}.so.0.5.5
-.endfor
- ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${LOCALBASE}/lib
-
.include <bsd.port.post.mk>
diff --git a/lang/gnustep-objc/pkg-plist b/lang/gnustep-objc/pkg-plist
index b0391a0a1968..ca97beb44ddf 100644
--- a/lang/gnustep-objc/pkg-plist
+++ b/lang/gnustep-objc/pkg-plist
@@ -265,8 +265,8 @@ Headers/gnustep/xraw/XRView.h
Headers/gnustep/xraw/XRWindow.h
Headers/gnustep/xraw/XRWindowView.h
Headers/gnustep/xraw/stdxr.h
-Headers/ix86/freebsd3.1/GSConfig.h
-Headers/ix86/freebsd3.1/mframe.h
+Headers/%%GNU_ARCH%%/%%GNU_HOST%%/GSConfig.h
+Headers/%%GNU_ARCH%%/%%GNU_HOST%%/mframe.h
Libraries/Resources/Images/GNUstep_Images_Copyright
Libraries/Resources/Images/common_ArrowDown.tiff
Libraries/Resources/Images/common_ArrowDownH.tiff
@@ -805,33 +805,13 @@ Libraries/Resources/gnustep/NSTimeZones/zones/Universal
Libraries/Resources/gnustep/NSTimeZones/zones/W-SU
Libraries/Resources/gnustep/NSTimeZones/zones/WET
Libraries/Resources/gnustep/NSTimeZones/zones/Zulu
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgmodel.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgmodel.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-base.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-base.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-gui.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-gui.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-xraw.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-xraw.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgmodel_s.a
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgnustep-base_s.a
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgnustep-gui_s.a
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgnustep-xraw_s.a
Library/Model/SavePanel.gmodel
Library/Services/example.service/Resources/Info-gnustep.plist
-Library/Services/example.service/ix86/freebsd3.1/gnu-gnu-gnu-xraw/example
+Library/Services/example.service/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/example
Makefiles/GNUstep.csh
Makefiles/GNUstep.sh
Makefiles/MediaBook.func
@@ -849,8 +829,8 @@ Makefiles/config.sub
Makefiles/cpu.sh
Makefiles/documentation.make
Makefiles/install-sh
-Makefiles/ix86/freebsd3.1/config.make
-Makefiles/ix86/freebsd3.1/which_lib
+Makefiles/%%GNU_ARCH%%/%%GNU_HOST%%/config.make
+Makefiles/%%GNU_ARCH%%/%%GNU_HOST%%/which_lib
Makefiles/ld_lib_path.csh
Makefiles/ld_lib_path.sh
Makefiles/library.make
@@ -871,42 +851,42 @@ Makefiles/tool.make
Makefiles/transform_paths.sh
Makefiles/vendor.sh
Tools/debugapp
-Tools/ix86/freebsd3.1/gdomap
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/defaults
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/dread
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/dremove
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/dwrite
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/gdnc
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/gpbs
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/make_services
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/plparse
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/set_show_service
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/sfparse
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gdomap
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/defaults
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/dread
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/dremove
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/dwrite
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/gdnc
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/gpbs
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/make_services
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/plparse
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/set_show_service
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/sfparse
Tools/openapp
Tools/opentool
share/config.site
@dirrm share
-@dirrm Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-@dirrm Tools/ix86/freebsd3.1
-@dirrm Tools/ix86
+@dirrm Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw
+@dirrm Tools/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Tools/%%GNU_ARCH%%
@dirrm Tools
-@dirrm Makefiles/ix86/freebsd3.1
-@dirrm Makefiles/ix86
+@dirrm Makefiles/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Makefiles/%%GNU_ARCH%%
@dirrm Makefiles
@dirrm Library/man
@dirrm Library/info
-@dirrm Library/Services/example.service/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-@dirrm Library/Services/example.service/ix86/freebsd3.1
-@dirrm Library/Services/example.service/ix86
+@dirrm Library/Services/example.service/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw
+@dirrm Library/Services/example.service/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Library/Services/example.service/%%GNU_ARCH%%
@dirrm Library/Services/example.service/Resources
@dirrm Library/Services/example.service
@dirrm Library/Services
@dirrm Library/PostScript
@dirrm Library/Model
@dirrm Library
-@dirrm Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-@dirrm Libraries/ix86/freebsd3.1
-@dirrm Libraries/ix86
+@dirrm Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw
+@dirrm Libraries/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Libraries/%%GNU_ARCH%%
@dirrm Libraries/Resources/gnustep/NSTimeZones/zones/US
@dirrm Libraries/Resources/gnustep/NSTimeZones/zones/SystemV
@dirrm Libraries/Resources/gnustep/NSTimeZones/zones/Pacific
@@ -933,8 +913,8 @@ share/config.site
@dirrm Libraries/Resources/Images
@dirrm Libraries/Resources
@dirrm Libraries
-@dirrm Headers/ix86/freebsd3.1
-@dirrm Headers/ix86
+@dirrm Headers/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Headers/%%GNU_ARCH%%
@dirrm Headers/gnustep/xraw
@dirrm Headers/gnustep/unicode
@dirrm Headers/gnustep/gui/AppKit
diff --git a/x11-toolkits/gnustep-gui/Makefile b/x11-toolkits/gnustep-gui/Makefile
index e2e198afe3cd..3825abbddac3 100644
--- a/x11-toolkits/gnustep-gui/Makefile
+++ b/x11-toolkits/gnustep-gui/Makefile
@@ -17,13 +17,21 @@ MAINTAINER= ports@FreeBSD.ORG
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff34
+BROKEN= "Sets PREFIX in the Makefile"
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 300000
BROKEN= "Sorry, this port does not work on FreeBSD-2.2.x"
.endif
-BROKEN= "Hardcoded freebsd release numbers in PLIST"
+.if ${MACHINE_ARCH} == "i386"
+GNU_ARCH= ix86
+.else
+GNU_ARCH= ${MACHINE_ARCH}
+.endif
+GNU_HOST= freebsd${OSREL}
+PLIST_SUB+= GNU_ARCH=${GNU_ARCH} GNU_HOST=${GNU_HOST}
WRKSRC= ${WRKDIR}/gstep-0.5.5
PREFIX= ${LOCALBASE}/GNUstep
@@ -41,14 +49,4 @@ MAKE_FLAGS= OPTFLAG="${CFLAGS}"
NO_MTREE= yes
USE_NEWGCC= yes
-GNUSTEPLIBDIR= ${PREFIX}/Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-
-post-install:
-.for lib in gmodel gnustep-base gnustep-gui gnustep-xraw
- ${LN} -sf ${GNUSTEPLIBDIR}/lib${lib}.so ${LOCALBASE}/lib/lib${lib}.so
- ${LN} -sf ${GNUSTEPLIBDIR}/lib${lib}.so.0.5.5 \
- ${LOCALBASE}/lib/lib${lib}.so.0.5.5
-.endfor
- ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${LOCALBASE}/lib
-
.include <bsd.port.post.mk>
diff --git a/x11-toolkits/gnustep-gui/pkg-plist b/x11-toolkits/gnustep-gui/pkg-plist
index b0391a0a1968..ca97beb44ddf 100644
--- a/x11-toolkits/gnustep-gui/pkg-plist
+++ b/x11-toolkits/gnustep-gui/pkg-plist
@@ -265,8 +265,8 @@ Headers/gnustep/xraw/XRView.h
Headers/gnustep/xraw/XRWindow.h
Headers/gnustep/xraw/XRWindowView.h
Headers/gnustep/xraw/stdxr.h
-Headers/ix86/freebsd3.1/GSConfig.h
-Headers/ix86/freebsd3.1/mframe.h
+Headers/%%GNU_ARCH%%/%%GNU_HOST%%/GSConfig.h
+Headers/%%GNU_ARCH%%/%%GNU_HOST%%/mframe.h
Libraries/Resources/Images/GNUstep_Images_Copyright
Libraries/Resources/Images/common_ArrowDown.tiff
Libraries/Resources/Images/common_ArrowDownH.tiff
@@ -805,33 +805,13 @@ Libraries/Resources/gnustep/NSTimeZones/zones/Universal
Libraries/Resources/gnustep/NSTimeZones/zones/W-SU
Libraries/Resources/gnustep/NSTimeZones/zones/WET
Libraries/Resources/gnustep/NSTimeZones/zones/Zulu
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgmodel.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgmodel.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-base.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-base.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-gui.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-gui.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-xraw.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-xraw.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgmodel_s.a
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgnustep-base_s.a
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgnustep-gui_s.a
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgnustep-xraw_s.a
Library/Model/SavePanel.gmodel
Library/Services/example.service/Resources/Info-gnustep.plist
-Library/Services/example.service/ix86/freebsd3.1/gnu-gnu-gnu-xraw/example
+Library/Services/example.service/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/example
Makefiles/GNUstep.csh
Makefiles/GNUstep.sh
Makefiles/MediaBook.func
@@ -849,8 +829,8 @@ Makefiles/config.sub
Makefiles/cpu.sh
Makefiles/documentation.make
Makefiles/install-sh
-Makefiles/ix86/freebsd3.1/config.make
-Makefiles/ix86/freebsd3.1/which_lib
+Makefiles/%%GNU_ARCH%%/%%GNU_HOST%%/config.make
+Makefiles/%%GNU_ARCH%%/%%GNU_HOST%%/which_lib
Makefiles/ld_lib_path.csh
Makefiles/ld_lib_path.sh
Makefiles/library.make
@@ -871,42 +851,42 @@ Makefiles/tool.make
Makefiles/transform_paths.sh
Makefiles/vendor.sh
Tools/debugapp
-Tools/ix86/freebsd3.1/gdomap
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/defaults
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/dread
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/dremove
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/dwrite
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/gdnc
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/gpbs
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/make_services
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/plparse
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/set_show_service
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/sfparse
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gdomap
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/defaults
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/dread
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/dremove
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/dwrite
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/gdnc
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/gpbs
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/make_services
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/plparse
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/set_show_service
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/sfparse
Tools/openapp
Tools/opentool
share/config.site
@dirrm share
-@dirrm Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-@dirrm Tools/ix86/freebsd3.1
-@dirrm Tools/ix86
+@dirrm Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw
+@dirrm Tools/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Tools/%%GNU_ARCH%%
@dirrm Tools
-@dirrm Makefiles/ix86/freebsd3.1
-@dirrm Makefiles/ix86
+@dirrm Makefiles/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Makefiles/%%GNU_ARCH%%
@dirrm Makefiles
@dirrm Library/man
@dirrm Library/info
-@dirrm Library/Services/example.service/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-@dirrm Library/Services/example.service/ix86/freebsd3.1
-@dirrm Library/Services/example.service/ix86
+@dirrm Library/Services/example.service/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw
+@dirrm Library/Services/example.service/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Library/Services/example.service/%%GNU_ARCH%%
@dirrm Library/Services/example.service/Resources
@dirrm Library/Services/example.service
@dirrm Library/Services
@dirrm Library/PostScript
@dirrm Library/Model
@dirrm Library
-@dirrm Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-@dirrm Libraries/ix86/freebsd3.1
-@dirrm Libraries/ix86
+@dirrm Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw
+@dirrm Libraries/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Libraries/%%GNU_ARCH%%
@dirrm Libraries/Resources/gnustep/NSTimeZones/zones/US
@dirrm Libraries/Resources/gnustep/NSTimeZones/zones/SystemV
@dirrm Libraries/Resources/gnustep/NSTimeZones/zones/Pacific
@@ -933,8 +913,8 @@ share/config.site
@dirrm Libraries/Resources/Images
@dirrm Libraries/Resources
@dirrm Libraries
-@dirrm Headers/ix86/freebsd3.1
-@dirrm Headers/ix86
+@dirrm Headers/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Headers/%%GNU_ARCH%%
@dirrm Headers/gnustep/xraw
@dirrm Headers/gnustep/unicode
@dirrm Headers/gnustep/gui/AppKit
diff --git a/x11-toolkits/gnustep-xgps/Makefile b/x11-toolkits/gnustep-xgps/Makefile
index e2e198afe3cd..3825abbddac3 100644
--- a/x11-toolkits/gnustep-xgps/Makefile
+++ b/x11-toolkits/gnustep-xgps/Makefile
@@ -17,13 +17,21 @@ MAINTAINER= ports@FreeBSD.ORG
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff34
+BROKEN= "Sets PREFIX in the Makefile"
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 300000
BROKEN= "Sorry, this port does not work on FreeBSD-2.2.x"
.endif
-BROKEN= "Hardcoded freebsd release numbers in PLIST"
+.if ${MACHINE_ARCH} == "i386"
+GNU_ARCH= ix86
+.else
+GNU_ARCH= ${MACHINE_ARCH}
+.endif
+GNU_HOST= freebsd${OSREL}
+PLIST_SUB+= GNU_ARCH=${GNU_ARCH} GNU_HOST=${GNU_HOST}
WRKSRC= ${WRKDIR}/gstep-0.5.5
PREFIX= ${LOCALBASE}/GNUstep
@@ -41,14 +49,4 @@ MAKE_FLAGS= OPTFLAG="${CFLAGS}"
NO_MTREE= yes
USE_NEWGCC= yes
-GNUSTEPLIBDIR= ${PREFIX}/Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-
-post-install:
-.for lib in gmodel gnustep-base gnustep-gui gnustep-xraw
- ${LN} -sf ${GNUSTEPLIBDIR}/lib${lib}.so ${LOCALBASE}/lib/lib${lib}.so
- ${LN} -sf ${GNUSTEPLIBDIR}/lib${lib}.so.0.5.5 \
- ${LOCALBASE}/lib/lib${lib}.so.0.5.5
-.endfor
- ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${LOCALBASE}/lib
-
.include <bsd.port.post.mk>
diff --git a/x11-toolkits/gnustep-xgps/pkg-plist b/x11-toolkits/gnustep-xgps/pkg-plist
index b0391a0a1968..ca97beb44ddf 100644
--- a/x11-toolkits/gnustep-xgps/pkg-plist
+++ b/x11-toolkits/gnustep-xgps/pkg-plist
@@ -265,8 +265,8 @@ Headers/gnustep/xraw/XRView.h
Headers/gnustep/xraw/XRWindow.h
Headers/gnustep/xraw/XRWindowView.h
Headers/gnustep/xraw/stdxr.h
-Headers/ix86/freebsd3.1/GSConfig.h
-Headers/ix86/freebsd3.1/mframe.h
+Headers/%%GNU_ARCH%%/%%GNU_HOST%%/GSConfig.h
+Headers/%%GNU_ARCH%%/%%GNU_HOST%%/mframe.h
Libraries/Resources/Images/GNUstep_Images_Copyright
Libraries/Resources/Images/common_ArrowDown.tiff
Libraries/Resources/Images/common_ArrowDownH.tiff
@@ -805,33 +805,13 @@ Libraries/Resources/gnustep/NSTimeZones/zones/Universal
Libraries/Resources/gnustep/NSTimeZones/zones/W-SU
Libraries/Resources/gnustep/NSTimeZones/zones/WET
Libraries/Resources/gnustep/NSTimeZones/zones/Zulu
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgmodel.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgmodel.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-base.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-base.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-gui.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-gui.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-xraw.so
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
-Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw/libgnustep-xraw.so.0.5.5
-@exec ln -sf %D/%F %D/../lib/%f
-@unexec rm -f %D/../lib/%f
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgmodel_s.a
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgnustep-base_s.a
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgnustep-gui_s.a
+Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/libgnustep-xraw_s.a
Library/Model/SavePanel.gmodel
Library/Services/example.service/Resources/Info-gnustep.plist
-Library/Services/example.service/ix86/freebsd3.1/gnu-gnu-gnu-xraw/example
+Library/Services/example.service/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/example
Makefiles/GNUstep.csh
Makefiles/GNUstep.sh
Makefiles/MediaBook.func
@@ -849,8 +829,8 @@ Makefiles/config.sub
Makefiles/cpu.sh
Makefiles/documentation.make
Makefiles/install-sh
-Makefiles/ix86/freebsd3.1/config.make
-Makefiles/ix86/freebsd3.1/which_lib
+Makefiles/%%GNU_ARCH%%/%%GNU_HOST%%/config.make
+Makefiles/%%GNU_ARCH%%/%%GNU_HOST%%/which_lib
Makefiles/ld_lib_path.csh
Makefiles/ld_lib_path.sh
Makefiles/library.make
@@ -871,42 +851,42 @@ Makefiles/tool.make
Makefiles/transform_paths.sh
Makefiles/vendor.sh
Tools/debugapp
-Tools/ix86/freebsd3.1/gdomap
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/defaults
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/dread
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/dremove
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/dwrite
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/gdnc
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/gpbs
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/make_services
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/plparse
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/set_show_service
-Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw/sfparse
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gdomap
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/defaults
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/dread
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/dremove
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/dwrite
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/gdnc
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/gpbs
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/make_services
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/plparse
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/set_show_service
+Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw/sfparse
Tools/openapp
Tools/opentool
share/config.site
@dirrm share
-@dirrm Tools/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-@dirrm Tools/ix86/freebsd3.1
-@dirrm Tools/ix86
+@dirrm Tools/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw
+@dirrm Tools/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Tools/%%GNU_ARCH%%
@dirrm Tools
-@dirrm Makefiles/ix86/freebsd3.1
-@dirrm Makefiles/ix86
+@dirrm Makefiles/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Makefiles/%%GNU_ARCH%%
@dirrm Makefiles
@dirrm Library/man
@dirrm Library/info
-@dirrm Library/Services/example.service/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-@dirrm Library/Services/example.service/ix86/freebsd3.1
-@dirrm Library/Services/example.service/ix86
+@dirrm Library/Services/example.service/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw
+@dirrm Library/Services/example.service/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Library/Services/example.service/%%GNU_ARCH%%
@dirrm Library/Services/example.service/Resources
@dirrm Library/Services/example.service
@dirrm Library/Services
@dirrm Library/PostScript
@dirrm Library/Model
@dirrm Library
-@dirrm Libraries/ix86/freebsd3.1/gnu-gnu-gnu-xraw
-@dirrm Libraries/ix86/freebsd3.1
-@dirrm Libraries/ix86
+@dirrm Libraries/%%GNU_ARCH%%/%%GNU_HOST%%/gnu-gnu-gnu-xraw
+@dirrm Libraries/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Libraries/%%GNU_ARCH%%
@dirrm Libraries/Resources/gnustep/NSTimeZones/zones/US
@dirrm Libraries/Resources/gnustep/NSTimeZones/zones/SystemV
@dirrm Libraries/Resources/gnustep/NSTimeZones/zones/Pacific
@@ -933,8 +913,8 @@ share/config.site
@dirrm Libraries/Resources/Images
@dirrm Libraries/Resources
@dirrm Libraries
-@dirrm Headers/ix86/freebsd3.1
-@dirrm Headers/ix86
+@dirrm Headers/%%GNU_ARCH%%/%%GNU_HOST%%
+@dirrm Headers/%%GNU_ARCH%%
@dirrm Headers/gnustep/xraw
@dirrm Headers/gnustep/unicode
@dirrm Headers/gnustep/gui/AppKit