summaryrefslogtreecommitdiffstats
path: root/devel/libxalloc/files
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-05-21 03:27:01 +0000
committerijliao <ijliao@FreeBSD.org>2002-05-21 03:27:01 +0000
commitd742fefbd49b342a0cf48a867460ef9f316c4976 (patch)
treed888eca3242cc5e631e77ac551147273a4608b92 /devel/libxalloc/files
parent696c55f45105e81f580452282f665d1cba6c4e00 (diff)
downloadFreeBSD-ports-d742fefbd49b342a0cf48a867460ef9f316c4976.zip
FreeBSD-ports-d742fefbd49b342a0cf48a867460ef9f316c4976.tar.gz
upgrade to 1.0.4
PR: 38218 Submitted by: Ports Fury
Diffstat (limited to 'devel/libxalloc/files')
-rw-r--r--devel/libxalloc/files/Makefile.lib16
-rw-r--r--devel/libxalloc/files/patch-aa61
2 files changed, 16 insertions, 61 deletions
diff --git a/devel/libxalloc/files/Makefile.lib b/devel/libxalloc/files/Makefile.lib
new file mode 100644
index 0000000..9c88a7e
--- /dev/null
+++ b/devel/libxalloc/files/Makefile.lib
@@ -0,0 +1,16 @@
+PREFIX?= /usr/local
+SHLIB_VER?= 1
+
+LIB= xalloc
+LIBDIR= ${PREFIX}/lib
+SHLIB_MAJOR= ${SHLIB_VER}
+SHLIB_MINOR= 0
+NOPROFILE= yes
+NOOBJ= yes
+
+INCS= xalloc.h
+INCDIR= ${PREFIX}/include
+
+SRCS= xalloc.c xmalloc.c xcalloc.c xrealloc.c xstrdup.c
+
+.include <bsd.lib.mk>
diff --git a/devel/libxalloc/files/patch-aa b/devel/libxalloc/files/patch-aa
deleted file mode 100644
index 5a87f84..0000000
--- a/devel/libxalloc/files/patch-aa
+++ /dev/null
@@ -1,61 +0,0 @@
---- Makefile.orig Sun Jul 5 17:15:59 1998
-+++ Makefile Sun Apr 29 23:29:53 2001
-@@ -8,7 +8,7 @@
- ###########################################################################
-
- # Define SHARED as 1 for Linux shared ELF library
--#SHARED = 1
-+SHARED = 1
-
- ifeq ($(SHARED),1)
- LIBTARGET = lib$(DIST).so.$(VERSION)
-@@ -24,21 +24,21 @@
-
- ###########################################################################
-
--INSTBASEDIR = /usr/local
-+INSTBASEDIR = ${PREFIX}
- INSTLIBDIR = $(INSTBASEDIR)/lib
- INSTINCDIR = $(INSTBASEDIR)/include
--INSTALL = install -m 644
-+INSTALL = ${BSD_INSTALL_DATA}
- MKDIRP = install -d -m 755
-
- ###########################################################################
-
--CC = gcc
--OPTIM = -O2
-+#CC = gcc
-+OPTIM = ${CFLAGS}
-
- LIBDIR = -L.
- INCDIR = -I.
-
--CCOPT = -Wall $(OPTIM) $(INCDIR)
-+CCOPT = $(INCDIR) $(CFLAGS)
- LDOPT = $(LIBDIR)
-
- # Object files to store in the library
-@@ -50,7 +50,7 @@
-
- $(LIBTARGET): $(LIBOBJS)
- ifeq ($(SHARED),1)
-- $(CC) -shared -Wl,-soname,$(LIBTARGETSOMAJ) -o $(LIBTARGET) $(LIBOBJS)
-+ $(CC) -shared -Wl,-soname,$(LIBTARGETSOMAJ) -o $(LIBTARGETSOMAJ) $(LIBOBJS)
- else
- ar rcs $(LIBTARGET) $(LIBOBJS)
- endif
-@@ -63,12 +63,10 @@
-
- install: $(LIBTARGET)
- $(MKDIRP) $(INSTLIBDIR) $(INSTINCDIR)
-- $(INSTALL) $(LIBTARGET) $(INSTLIBDIR)
-+ $(INSTALL) $(LIBTARGETSOMAJ) $(INSTLIBDIR)
- $(INSTALL) $(LIBHEAD) $(INSTINCDIR)
- ifeq ($(SHARED),1)
-- ln -sf $(LIBTARGET) $(INSTLIBDIR)/$(LIBTARGETSOMAJ)
- ln -sf $(LIBTARGETSOMAJ) $(INSTLIBDIR)/$(LIBTARGETSO)
-- echo "If you use GNU/Linux, remember to run ldconfig"
- endif
-
- clean:
OpenPOWER on IntegriCloud