aboutsummaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2005-10-25 10:18:25 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2005-10-25 10:18:25 +0000
commita04f9237ed786aecc64d26f9554224b00f1e2b3f (patch)
tree0f16696a192851e1d43a3851d69c8d80c565fc4d /archivers
parent1476df6bd53bed1e6e89fa5cf064fe87d8877525 (diff)
downloadports-a04f9237ed786aecc64d26f9554224b00f1e2b3f.tar.gz
ports-a04f9237ed786aecc64d26f9554224b00f1e2b3f.zip
Unbreak on sparc64.
Tested on: panther
Notes
Notes: svn path=/head/; revision=146322
Diffstat (limited to 'archivers')
-rw-r--r--archivers/dzip/Makefile11
1 files changed, 3 insertions, 8 deletions
diff --git a/archivers/dzip/Makefile b/archivers/dzip/Makefile
index 11cdb8e07cc9..1c0dcaa5bd10 100644
--- a/archivers/dzip/Makefile
+++ b/archivers/dzip/Makefile
@@ -24,21 +24,16 @@ ALL_TARGET= ${PORTNAME}
PLIST_FILES= bin/${PORTNAME}
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "sparc64"
-BROKEN= "Does not compile on sparc64"
-.endif
-
post-extract:
@${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 ${WRKSRC}/dzip.h
+ ${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}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>