aboutsummaryrefslogtreecommitdiff
path: root/devel/libhoard
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2007-03-25 21:03:41 +0000
committerPav Lucistnik <pav@FreeBSD.org>2007-03-25 21:03:41 +0000
commitcb2ef39d511f14af4f378e49c6109122a86215c6 (patch)
treed8783a86227ea4e5c01cde6f0c4a368c2227d032 /devel/libhoard
parent46aac7583138a1561e0dcc3f3240732153f287ce (diff)
downloadports-cb2ef39d511f14af4f378e49c6109122a86215c6.tar.gz
ports-cb2ef39d511f14af4f378e49c6109122a86215c6.zip
Notes
Diffstat (limited to 'devel/libhoard')
-rw-r--r--devel/libhoard/Makefile24
-rw-r--r--devel/libhoard/distinfo6
-rw-r--r--devel/libhoard/files/patch-Makefile36
-rw-r--r--devel/libhoard/files/patch-Makefile.common133
-rw-r--r--devel/libhoard/pkg-plist5
5 files changed, 40 insertions, 164 deletions
diff --git a/devel/libhoard/Makefile b/devel/libhoard/Makefile
index 8bf2c387d56b..9dd89e7ffce1 100644
--- a/devel/libhoard/Makefile
+++ b/devel/libhoard/Makefile
@@ -6,33 +6,29 @@
#
PORTNAME= libhoard
-PORTVERSION= 2.1.2d
-PORTREVISION?= 2
+PORTVERSION= 3.6
CATEGORIES= devel
-MASTER_SITES= http://www.cs.umass.edu/~emery/software/
+MASTER_SITES= http://www.cs.umass.edu/~emery/hoard/hoard-${PORTVERSION}/
+DISTNAME= hoard-36
MAINTAINER= osa@FreeBSD.org
COMMENT= Fast, scalable and memory-efficient allocator for MP
-USE_GMAKE= yes
-MAKE_ENV= USE_FREEBSD=1 \
- PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
- PTHREAD_LIBS="${PTHREAD_LIBS}"
-INSTALLS_SHLIB= YES
+USE_LDCONFIG= yes
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
+
+ALL_TARGET= freebsd
+
+PLIST_FILES= lib/libhoard.so lib/libhoard.so.1
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 501100
-IGNORE= "You must have a FreeBSD 5.1-RELEASE or better"
+IGNORE= you must have a FreeBSD 5.1-RELEASE or better
.endif
do-install:
${INSTALL_DATA} ${WRKSRC}/libhoard.so ${PREFIX}/lib/libhoard.so.1
${LN} -sf ${PREFIX}/lib/libhoard.so.1 ${PREFIX}/lib/libhoard.so
-.if !defined(NOPORTDOCS)
- ${INSTALL} -d -m 0755 ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/docs/asplos2000.pdf ${DOCSDIR}
-.endif
.include <bsd.port.post.mk>
diff --git a/devel/libhoard/distinfo b/devel/libhoard/distinfo
index 93ae5c40b586..b62a084646ca 100644
--- a/devel/libhoard/distinfo
+++ b/devel/libhoard/distinfo
@@ -1,3 +1,3 @@
-MD5 (libhoard-2.1.2d.tar.gz) = fd0247f3ec28f507e2eb6b437263fcfe
-SHA256 (libhoard-2.1.2d.tar.gz) = 975ca2e090fe9454e6fa6548f003e2bd4a98e7452739ce25f566511f7de1ef6e
-SIZE (libhoard-2.1.2d.tar.gz) = 570753
+MD5 (hoard-36.tar.gz) = fb6b59a173825601c0f443610ba21740
+SHA256 (hoard-36.tar.gz) = c125a7e9ac5c6c01548dbbf6d4e63f05905c4594af2ca304b67ce9cf3254e5c9
+SIZE (hoard-36.tar.gz) = 410960
diff --git a/devel/libhoard/files/patch-Makefile b/devel/libhoard/files/patch-Makefile
index 4e5fdc99076c..d55d0a4ebd8d 100644
--- a/devel/libhoard/files/patch-Makefile
+++ b/devel/libhoard/files/patch-Makefile
@@ -1,11 +1,29 @@
---- Makefile.orig Wed Jun 25 17:44:34 2003
-+++ Makefile Wed Jun 25 17:45:03 2003
-@@ -37,7 +37,7 @@
- $(LIBSO) libhoard.o $(OBJS) -o $@ $(LIBS)
+--- Makefile.orig Sun Mar 11 10:57:07 2007
++++ Makefile Sun Mar 11 11:00:07 2007
+@@ -1,6 +1,8 @@
+ # Commands to compile Hoard for various targets.
+ # Run make (with no arguments) to see the complete target list.
- libhoard.o: libhoard.cpp $(SRCS)
-- $(CXX) $(CXXFLAGS) -c $< -o $@
-+ $(CXX) $(CXXFLAGS) $(FEATURESXX) -c $< -o $@
- endif
++FREEBSD_COMPILE := $(CXX) $(CFLAGS) -static -DNDEBUG -I. -Iheaplayers -Iheaplayers/util -D_REENTRANT=1 -shared libhoard.cpp -Bsymbolic -o libhoard.so -pthread -fPIC
++
+ DARWIN8_COMPILE := g++ -pipe -O2 -DNDEBUG -I. -Iheaplayers -Iheaplayers/util -D_REENTRANT=1 -compatibility_version 1 -current_version 1 -dynamiclib libhoard.cpp -o libhoard.dylib -ldl -lpthread
- ifeq ($(WINDOWS),1)
+ DARWIN8_COMPILE_DEBUG := g++ -pipe -g -I. -Iheaplayers -Iheaplayers/util -D_REENTRANT=1 -compatibility_version 1 -current_version 1 -dynamiclib libhoard.cpp -o libhoard.dylib -ldl -lpthread
+@@ -32,6 +34,7 @@
+ all:
+ @echo "To build Hoard, specify the desired build target:"
+
++ @echo " freebsd"
+ @echo " darwin"
+ @echo " linux-gcc-x86"
+ @echo " solaris-sunw-sparc"
+@@ -42,6 +45,9 @@
+ @echo " (for build instructions on Windows, see NOTES.Windows)"
+
+ .PHONY: darwin linux-gcc-x86 linux-gcc-x86-debug solaris-sunw-sparc solaris-sunw-x86 solaris-gcc-sparc generic-gcc clean
++
++freebsd:
++ $(FREEBSD_COMPILE)
+
+ darwin:
+ $(DARWIN8_COMPILE)
diff --git a/devel/libhoard/files/patch-Makefile.common b/devel/libhoard/files/patch-Makefile.common
deleted file mode 100644
index 0da6b3c9531a..000000000000
--- a/devel/libhoard/files/patch-Makefile.common
+++ /dev/null
@@ -1,133 +0,0 @@
---- Makefile.common.orig Mon Apr 7 19:57:11 2003
-+++ Makefile.common Wed Jun 25 17:41:29 2003
-@@ -21,8 +21,17 @@
- # or supply new values as parameters to make, e.g.:
- # make USE_WINDOWS=1 DEBUG=1
-
-+ifeq ($(OSTYPE),freebsd)
-+USE_FREEBSD = 1
-+USE_LINUX = 0
-+USE_HPUX = 0
-+USE_WINDOWS = 0
-+USE_SOLARIS = 0
-+UNIX = 1
-+endif
-
- ifeq ($(OSTYPE),hpux)
-+USE_FREEBSD = 0
- USE_LINUX = 0
- USE_HPUX = 1
- USE_WINDOWS = 0
-@@ -31,6 +40,7 @@
- endif
-
- ifeq ($(OSTYPE),linux)
-+USE_FREEBSD = 0
- USE_HPUX = 0
- USE_LINUX = 1 # Linux
- USE_WINDOWS = 0
-@@ -39,6 +49,7 @@
- endif
-
- ifeq ($(OSTYPE),linux-gnu)
-+USE_FREEBSD = 0
- USE_HPUX = 0
- USE_LINUX = 1 # Linux
- USE_WINDOWS = 0
-@@ -47,6 +58,7 @@
- endif
-
- ifeq ($(OSTYPE),solaris)
-+USE_FREEBSD = 0
- USE_HPUX = 0
- USE_LINUX = 0
- USE_WINDOWS = 0
-@@ -55,6 +67,7 @@
- endif
-
- ifeq ($(OS),Windows_NT)
-+USE_FREEBSD = 0
- USE_HPUX = 0
- USE_LINUX = 0
- USE_WINDOWS = 1
-@@ -109,6 +122,15 @@
- # LIBSO = $(CC) -shared
- endif
-
-+ifeq ($(USE_FREEBSD),1)
-+ GNUC = 1
-+ VPATH = ../run-freebsd
-+ FEATURES = ${PTHREAD_CFLAGS}
-+ LIBS = ${PTHREAD_LIBS}
-+ UNIX = 1
-+endif
-+
-+
- ifdef BROKEN
- CPATH = /usr/bin/
- endif
-@@ -125,10 +147,8 @@
- endif
-
- ifdef GNUC
-- CC = $(CPATH)gcc
-- CXX = $(CPATH)g++
-- FEATURES = -fPIC -D__STRICT_ANSI__ -D_GNU_SOURCE -D_REENTRANT -Wall -fno-exceptions #-fPIC
-- OPTIMIZE = -O6 -fexpensive-optimizations -finline-functions -fomit-frame-pointer -ffast-math
-+ FEATURES = -fPIC -D__STRICT_ANSI__ -D_GNU_SOURCE -D_REENTRANT -Wall -fno-exceptions -Wno-deprecated
-+ OPTIMIZE =
- FEATURESXX = $(FEATURES)
- OPTIMIZEXX = $(OPTIMIZE)
- LIBSO = $(CC) -shared #-nostartfiles
-@@ -144,40 +164,40 @@
- endif
-
- else
-- CFLAGS = $(FEATURES) -DNDEBUG $(OPTIMIZE)
-- CXXFLAGS = $(FEATURESXX) -DNDEBUG $(OPTIMIZEXX)
-+# CFLAGS = $(FEATURES) -DNDEBUG $(OPTIMIZE)
-+# CXXFLAGS = $(FEATURESXX) -DNDEBUG $(OPTIMIZEXX)
- # CFLAGS = $(FEATURES) /Zi /DEBUG $(OPTIMIZE)
- # CXXFLAGS = $(FEATURESXX) /Zi /DEBUG $(OPTIMIZEXX)
- endif
-
--LIBS = $(LIBTHREAD)
-+LIBS = ${PTHREAD_LIBS}
-
-
- .SUFFIXES: .c .cpp .o .a .so .tex .dvi .ps .png .bmp .ppm .eps .s .obj
-
- .s.o:
-- $(CC) $(CFLAGS) -c -o $@ $<
-+ $(CC) $(CFLAGS) $(FEATURES) -c -o $@ $<
-
- .c.o:
-- $(CC) $(CFLAGS) -c -o $@ $<
-+ $(CC) $(CFLAGS) $(FEATURES) -c -o $@ $<
-
- .cpp.o:
-- $(CXX) $(CXXFLAGS) -c -o $@ $<
-+ $(CXX) $(CXXFLAGS) $(FEATURESXX) -c -o $@ $<
-
- .c.obj:
-- $(CC) $(CFLAGS) -c -o $@ $<
-+ $(CC) $(CFLAGS) $(FEATURES) -c -o $@ $<
-
- .cpp.obj:
-- $(CXX) $(CXXFLAGS) -c -o $@ $<
-+ $(CXX) $(CXXFLAGS) $(FEATURESXX) -c -o $@ $<
-
- .o:
-- $(CC) $(CFLAGS) $< -o $@ $(LIBS)
-+ $(CC) $(CFLAGS) $(FEATURES) $< -o $@ $(LIBS)
-
- .c:
-- $(CC) $(CFLAGS) $< -o $@ $(LIBS)
-+ $(CC) $(CFLAGS) $(FEATURES) $< -o $@ $(LIBS)
-
- .cpp:
-- $(CXX) $(CXXFLAGS) $< -o $@ $(LIBS)
-+ $(CXX) $(CXXFLAGS) $(FEATURESXX) $< -o $@ $(LIBS)
-
- .o.a:
- -rm -f $@
diff --git a/devel/libhoard/pkg-plist b/devel/libhoard/pkg-plist
deleted file mode 100644
index 0101054f5993..000000000000
--- a/devel/libhoard/pkg-plist
+++ /dev/null
@@ -1,5 +0,0 @@
-lib/libhoard.so
-lib/libhoard.so.1
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/asplos2000.pdf
-%%PORTDOCS%%@dirrm %%DOCSDIR%%