aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2006-03-22 17:56:34 +0800
committerdanfe <danfe@FreeBSD.org>2006-03-22 17:56:34 +0800
commit51382e6c72820bc8854b03fa78f8ff2bf3cb0660 (patch)
tree2c12424ce97cffd520a6877b6a349429c79307c1
parent71ada35c155ecc14ca69551178bfd9ee5f693830 (diff)
downloadfreebsd-ports-gnome-51382e6c72820bc8854b03fa78f8ff2bf3cb0660.tar.gz
freebsd-ports-gnome-51382e6c72820bc8854b03fa78f8ff2bf3cb0660.tar.zst
freebsd-ports-gnome-51382e6c72820bc8854b03fa78f8ff2bf3cb0660.zip
- Unbreak on sparc64 [*]
- Fix a small harmless typo - Utilize USE_DOS2UNIX - Remove no-op USE_REINPLACE Thanks to: philip for sparc64 box access [*]
-rw-r--r--archivers/dzip/Makefile15
1 files changed, 4 insertions, 11 deletions
diff --git a/archivers/dzip/Makefile b/archivers/dzip/Makefile
index 026aebfb9a9d..6b5c45bc80cd 100644
--- a/archivers/dzip/Makefile
+++ b/archivers/dzip/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= danfe@FreeBSD.org
COMMENT= File compression utility specializing in Quake demo compression
USE_ZIP= yes
-USE_REINPLACE= yes
+USE_DOS2UNIX= yes
WRKSRC= ${WRKDIR}
MAKEFILE= ${WRKSRC}/Makefile.linux
@@ -24,22 +24,15 @@ ALL_TARGET= ${PORTNAME}
PLIST_FILES= bin/${PORTNAME}
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "sparc64"
-BROKEN= "Does not compile on sparc64"
-.endif
-
post-extract: .SILENT
- ${FIND} -E ${WRKDIR} -type f -print0 | \
- ${XARGS} -0 ${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//'
${REINPLACE_CMD} -e 's/ifdef BIG_ENDIAN/if BYTE_ORDER == BIG_ENDIAN/' \
-e 's/ifndef BIG_ENDIAN/if BYTE_ORDER == LITTLE_ENDIAN/' \
${WRKSRC}/dzip.h ${WRKSRC}/conmain.c
${REINPLACE_CMD} -e '4s,^,#include <machine/endian.h>,' ${WRKSRC}/dzip.h
- ${REINPLACE_CMD} -e 's/) $$(OBJECTS/&:T/' ${WRKSRCK}/${MAKEFILE}
+ ${REINPLACE_CMD} -e 's/) $$(OBJECTS/&:T/' ${MAKEFILE}
+ ${REINPLACE_CMD} '21d;23d' ${WRKSRC}/dzipcon.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>