mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-10 07:04:03 +00:00
- Fix installation from plain user
- Fix executable permissions - Strip binary - Pass maintainership to submitter PR: 190128 Submitted by: Matthew Luckie <mjl@luckie.org.nz>
This commit is contained in:
parent
c5bf39abc1
commit
e252232bdc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355876
@ -3,12 +3,13 @@
|
||||
|
||||
PORTNAME= dmalloc
|
||||
PORTVERSION= 5.5.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel
|
||||
# Version 5.5.2 is only available at this URL
|
||||
MASTER_SITES= http://dmalloc.com/releases/
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= mjl@luckie.org.nz
|
||||
COMMENT= Portable debug memory allocation library
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
@ -29,17 +30,20 @@ OPTIONS_DEFINE= DOCS
|
||||
INSTALL_TARGET+=installdocs
|
||||
.endif
|
||||
|
||||
pre-patch:
|
||||
@${REINPLACE_CMD} -e 's|\.@shlibext@|\.@shlibext@.1|' ${WRKSRC}/Makefile.in
|
||||
|
||||
post-install:
|
||||
${CHMOD} 755 ${STAGEDIR}${PREFIX}/bin/dmalloc
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/dmalloc
|
||||
@(cd ${STAGEDIR}${PREFIX}/lib; \
|
||||
${CHMOD} 644 libdmalloc.so.1; \
|
||||
${STRIP_CMD} libdmalloc.so.1; \
|
||||
${LN} -sf libdmalloc.so.1 libdmalloc.so; \
|
||||
${CHMOD} 644 libdmallocxx.so.1; \
|
||||
${STRIP_CMD} libdmallocxx.so.1; \
|
||||
${LN} -sf libdmallocxx.so.1 libdmallocxx.so; \
|
||||
${CHMOD} 644 libdmallocth.so.1; \
|
||||
${STRIP_CMD} libdmallocth.so.1; \
|
||||
${LN} -sf libdmallocth.so.1 libdmallocth.so; \
|
||||
${CHMOD} 644 libdmallocthcxx.so.1; \
|
||||
${STRIP_CMD} libdmallocthcxx.so.1; \
|
||||
${LN} -sf libdmallocthcxx.so.1 libdmallocthcxx.so)
|
||||
|
||||
|
@ -1,6 +1,50 @@
|
||||
--- Makefile.in Fri Jul 6 19:20:21 2007
|
||||
+++ Makefile.in.new Fri Jul 6 19:20:46 2007
|
||||
@@ -257,7 +257,7 @@
|
||||
--- Makefile.in 2014-05-27 11:10:16.000000000 -0700
|
||||
+++ Makefile.in.3 2014-05-27 11:12:56.000000000 -0700
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
# thread version of the library
|
||||
LIB_TH = lib$(MODULE)th.a
|
||||
-LIB_TH_SL = lib$(MODULE)th.@shlibext@
|
||||
+LIB_TH_SL = lib$(MODULE)th.@shlibext@.1
|
||||
@TH_ON@BUILD_ALL_1 = threads
|
||||
@TH_ON@INSTALL_LIB_1 = installth
|
||||
@SL_ON@BUILD_THREADS_1 = $(LIB_TH_SL)
|
||||
@@ -51,7 +51,7 @@
|
||||
|
||||
# C++ version of the library
|
||||
LIB_CXX = lib$(MODULE)xx.a
|
||||
-LIB_CXX_SL = lib$(MODULE)xx.@shlibext@
|
||||
+LIB_CXX_SL = lib$(MODULE)xx.@shlibext@.1
|
||||
@CXX_ON@BUILD_ALL_3 = $(LIB_CXX)
|
||||
@CXX_ON@INSTALL_LIB_3 = installcxx
|
||||
@SL_ON@BUILD_CXX_3 = $(LIB_CXX_SL)
|
||||
@@ -61,7 +61,7 @@
|
||||
|
||||
# threads + C++
|
||||
LIB_TH_CXX = lib$(MODULE)thcxx.a
|
||||
-LIB_TH_CXX_SL = lib$(MODULE)thcxx.@shlibext@
|
||||
+LIB_TH_CXX_SL = lib$(MODULE)thcxx.@shlibext@.1
|
||||
@TH_ON@@CXX_ON@BUILD_ALL_5 = $(LIB_TH_CXX)
|
||||
@TH_ON@@CXX_ON@INSTALL_LIB_5 = installthcxx
|
||||
@TH_ON@BUILD_CXX_5 = $(LIB_TH_CXX)
|
||||
@@ -76,7 +76,7 @@
|
||||
@CXX_ON@@SL_ON@INSTALL_THREADS_6 = installthcxxsl
|
||||
|
||||
# shared versions of the libraries
|
||||
-LIB_SL = lib$(MODULE).@shlibext@
|
||||
+LIB_SL = lib$(MODULE).@shlibext@.1
|
||||
@SL_ON@BUILD_ALL_7 = $(LIB_SL)
|
||||
@SL_ON@INSTALL_LIB_7 = installsl
|
||||
@SL_ON@BUILD_TH_CXX_7 = $(LIB_TH_CXX_SL)
|
||||
@@ -218,7 +218,6 @@
|
||||
installlib : $(INSTALL_LIB)
|
||||
$(srcdir)/mkinstalldirs $(libdir)
|
||||
$(INSTALL_PROGRAM) $(LIBRARY) $(libdir)
|
||||
- @RANLIB@ $(libdir)/$(LIBRARY)
|
||||
@SL_OFF@ @echo "Enter 'make installsl' to install $(LIB_SL) in $(shlibdir)"
|
||||
@CXX_OFF@ @echo "Enter 'make installcxx' to install the C++ library"
|
||||
@TH_OFF@ @echo "Enter 'make installth' to install thread library"
|
||||
@@ -257,7 +256,7 @@
|
||||
# via: http://256.com/gray/email.html
|
||||
$(LIB_SL) : $(LIBRARY)
|
||||
rm -f $@ $@.t
|
||||
@ -9,7 +53,7 @@
|
||||
mv $@.t $@
|
||||
|
||||
$(LIBRARY) : $(OBJS) $(NORMAL_OBJS)
|
||||
@@ -270,7 +270,7 @@
|
||||
@@ -270,7 +269,7 @@
|
||||
|
||||
$(LIB_TH_SL) : $(LIB_TH)
|
||||
rm -f $@ $@.t
|
||||
@ -18,7 +62,7 @@
|
||||
mv $@.t $@
|
||||
|
||||
$(LIB_CXX) : $(OBJS) $(NORMAL_OBJS) $(CXX_OBJS)
|
||||
@@ -279,7 +279,7 @@
|
||||
@@ -279,7 +278,7 @@
|
||||
|
||||
$(LIB_CXX_SL) : $(LIB_CXX)
|
||||
rm -f $@ $@.t
|
||||
@ -27,7 +71,7 @@
|
||||
mv $@.t $@
|
||||
|
||||
$(LIB_TH_CXX) : $(OBJS) $(THREAD_OBJS) $(CXX_OBJS)
|
||||
@@ -288,7 +288,7 @@
|
||||
@@ -288,7 +287,7 @@
|
||||
|
||||
$(LIB_TH_CXX_SL) : $(LIB_TH_CXX)
|
||||
rm -f $@ $@.t
|
||||
|
Loading…
Reference in New Issue
Block a user