0d2725682b
structure (i.e. include/SDL for includes and sdl-config for configuration binary) - Update graphics/sdl_ttf to version 2.0.8 - Update graphics/sdl_image to version 1.2.5 - Update audio/sdl_mixer to version 1.2.7 - Update net/sdl_net to version 1.2.6 - Update Mk/bsd.sdl.mk accordingly - Fix dependent ports to fit the new directory structure and avoid several API breakages - Bump up portrevisions for all dependent ports to allow them to be upgraded by portupgrade/portmaster etc tools Approved by: kris (portmgr), sem (mentor)
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: mesgui
|
|
# Date created: Jul 24, 2002
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mesgui
|
|
PORTVERSION= 1.0
|
|
PORTREVISION= 3
|
|
CATEGORIES= x11-toolkits
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Make a simple GUI under OpenGL
|
|
|
|
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
|
|
|
|
USE_SDL= sdl
|
|
USE_GL= yes
|
|
USE_GMAKE= yes
|
|
MAKE_ENV= OPT="${OPT}" LDFLAGS="${LDFLAGS}"
|
|
USE_LDCONFIG= yes
|
|
|
|
OPT= ${CFLAGS} -fPIC -DPIC -Iinclude \
|
|
`${SDL_CONFIG} --cflags` `freetype-config --cflags` \
|
|
-I${LOCALBASE}/include -I${X11BASE}/include
|
|
LDFLAGS= `${SDL_CONFIG} --libs` `freetype-config --libs` \
|
|
-L${LOCALBASE}/lib -L${X11BASE}/lib
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|^CC|#CC|g ; \
|
|
s|^OPT|#OPT|g ; \
|
|
s|gcc|\$$\(CC\)|g ; \
|
|
s|-lc|\$$\(LDFLAGS\)|g' ${WRKSRC}/Makefile
|
|
@cd ${WRKSRC}/src && \
|
|
for file in * ; do \
|
|
${MV} $${file} $${file}.pre_tr ; \
|
|
${TR} -d "\r" < $${file}.pre_tr > $${file} ; \
|
|
done
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/include/mesgui.h ${PREFIX}/include
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/libmesgui.a ${PREFIX}/lib
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/libmesgui.so.1.0 ${PREFIX}/lib/libmesgui.so.1
|
|
${LN} -fs ${PREFIX}/lib/libmesgui.so.1 ${PREFIX}/lib/libmesgui.so
|
|
|
|
.include <bsd.port.mk>
|