freebsd-ports/x11-fm/tdfsb/Makefile
Martin Wilke 3e4ed01146 - Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+

Thanks to all Helpers:
	Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
	ehaupt, nox, itetcu, flz, pav

PR:		116263
Tested on:	pointyhat
Approved by:	portmgr (pav)
2008-04-19 17:56:05 +00:00

52 lines
1.3 KiB
Makefile

# New ports collection makefile for: TDFSB
# Date created: 31 Jul 2005
# Whom: Alejandro Pulver <alejandro@varnet.biz>
#
# $FreeBSD$
#
PORTNAME= tdfsb
PORTVERSION= 0.0.9
PORTREVISION= 5
CATEGORIES= x11-fm
MASTER_SITES= http://www.determinate.net/webdata/data/
MAINTAINER= alepulver@FreeBSD.org
COMMENT= A 3D filesystem browser
LIB_DEPENDS= smpeg.1:${PORTSDIR}/multimedia/smpeg \
glut.4:${PORTSDIR}/graphics/libglut
USE_GL= yes
USE_SDL= image sdl
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= README
COMPILE_SCRIPT= compile.sh
do-build:
@(cd ${BUILD_WRKSRC}; ${SH} ${COMPILE_SCRIPT})
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.pre.mk>
post-patch:
# Dirty hack below (ripping -lm) is needed in order to build the port on
# NVidia-infected system. Without it, it may complain on conflicting
# libm.so versions (x11/nvidia-driver gets one via misc/compat5x port).
# However, since libGLU.so already depends on it, we should be fine.
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}| ; \
s|gcc|${CC}| ; s| -lm|| ; \
s|/usr/local|${LOCALBASE}|g ; \
s|/usr/X11R6|${LOCALBASE}|g ; \
s|-O2|${CFLAGS}|g' \
${WRKSRC}/${COMPILE_SCRIPT}
.include <bsd.port.post.mk>