1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

- Unbreak on 64-bit, little-endian machines (read: amd64)

Approved by:	portmgr (marcus)
This commit is contained in:
Pietro Cerutti 2008-09-12 21:00:07 +00:00
parent 8770aa32ef
commit cb240e58ae
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=220367
2 changed files with 14 additions and 0 deletions

View File

@ -28,6 +28,8 @@ post-extract:
post-patch:
@${PERL} -pi -e 's|/secureplace/bin|${PREFIX}/bin|g;' \
-e 's|/usr/man|${PREFIX}/man|g;' ${WRKSRC}/Makefile
${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e \
's|bs_ntohl|ntohl|g;s|bs_htonl|htonl|g'
pre-configure:
@ ${CP} ${FILESDIR}/conf-freebsd2.h ${WRKSRC}/configs

View File

@ -0,0 +1,12 @@
--- aux/Makefile.orig 2008-09-12 17:24:07.293242000 +0000
+++ aux/Makefile 2008-09-12 17:25:08.192241000 +0000
@@ -13,7 +13,8 @@
@echo "### Ignore warnings about shift count negative/too large on line 36"
@echo "###"
$(CC) $(CFLAGS) $(LDFLAGS) byteorder.c -o byteorder
- (./byteorder; cat ./ntohl.h) > $(BORDER)
+ (./byteorder; cat ./ntohl.h) > /dev/null
+ @touch $(BORDER)
$(INODE): types.sh types.c types
$(SHELL) ./types.sh "$(CPP)" > $(INODE)