mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
e252232bdc
- Fix executable permissions - Strip binary - Pass maintainership to submitter PR: 190128 Submitted by: Matthew Luckie <mjl@luckie.org.nz>
51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
# Created by: Jeremy Shaffner <jeremy@external.org>
|
|
# $FreeBSD$
|
|
|
|
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= mjl@luckie.org.nz
|
|
COMMENT= Portable debug memory allocation library
|
|
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-threads --enable-shlib --prefix="${STAGEDIR}${PREFIX}"
|
|
CONFIGURE_ENV= INSTALL_PROGRAM="${INSTALL_DATA}"
|
|
CFLAGS= -fPIC
|
|
USE_LDCONFIG= yes
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
ALL_TARGET= all heavy
|
|
INSTALL_TARGET= install
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
INSTALL_TARGET+=installdocs
|
|
.endif
|
|
|
|
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)
|
|
|
|
.include <bsd.port.mk>
|