1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/x11-fm/tdfsb/Makefile
John Marino 4ede5e9b24 Explicitly link libraries on 10 unmaintained ports
The following ports will not build with a binutils 2.22+ linker built
with standard options.  This has been obvious with DPorts, but difficult
to see on FreeBSD.  However, setting the ports compiler as a recent gcc
(e.g lang/gcc48) is an excellent way to detect the unspecified but needed
libraries as these recent GCC compilers use the latest binutils linkers.
These patches were tested on FreeBSD 8.4 and DragonFly 3.5
2013-10-08 00:15:34 +00:00

47 lines
1.0 KiB
Makefile

# Created by: Alejandro Pulver <alejandro@varnet.biz>
# $FreeBSD$
PORTNAME= tdfsb
PORTVERSION= 0.0.10
PORTREVISION= 3
CATEGORIES= x11-fm
MASTER_SITES= http://www.determinate.net/webdata/data/
MAINTAINER= ports@FreeBSD.org
COMMENT= A 3D filesystem browser
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
LIB_DEPENDS= smpeg.1:${PORTSDIR}/multimedia/smpeg
USE_GL= glut
USE_SDL= image sdl
USES= pkgconfig
PORTDOCS= README
PLIST_FILES= bin/${PORTNAME}
CPPFLAGS+= `${LOCALBASE}/bin/pkgconf --cflags SDL_image gl` \
`${LOCALBASE}/bin/smpeg-config --cflags` \
-I ${LOCALBASE}/include
LDFLAGS+= `${LOCALBASE}/bin/pkgconf --libs SDL_image gl` \
`${LOCALBASE}/bin/smpeg-config --libs` \
-L ${LOCALBASE}/lib -lGLU -lglut -lm
NO_STAGE= yes
.include <bsd.port.pre.mk>
do-build:
(cd ${BUILD_WRKSRC} && ${CC} ${CPPFLAGS} ${CFLAGS} ${PORTNAME}.c \
-o ${PORTNAME} ${LDFLAGS})
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.post.mk>