mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
6f6fbe4bdf
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead PR: 157936 Submitted by: myself Exp-runs by: pav Approved by: pav
40 lines
966 B
Makefile
40 lines
966 B
Makefile
# New ports collection makefile for: otk
|
|
# Date created: 21 Jan 2006
|
|
# Whom: Igor Pokrovsky <ip@doom.homeunix.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= otk
|
|
PORTVERSION= 0.94
|
|
CATEGORIES= x11-toolkits graphics
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/v${PORTVERSION}
|
|
DISTNAME= ${PORTNAME}_lib_${PORTVERSION}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Widget library based on OpenGL
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}_lib
|
|
|
|
USE_XORG= xmu xext x11
|
|
USE_GL= glut glu gl
|
|
USE_LDCONFIG= yes
|
|
|
|
PLIST_FILES= include/gadget_lib.h include/otk_lib.h \
|
|
lib/libotk.so lib/libotk.so.0
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -fPIC
|
|
LDFLAGS+= -lGLU -lGL -lXmu -lXext -lX11 -L${LOCALBASE}/lib
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} -shared otk_lib.c \
|
|
-o libotk.so.0 ${LDFLAGS}
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/libotk.so.0 ${PREFIX}/lib
|
|
@${LN} -sf libotk.so.0 ${PREFIX}/lib/libotk.so
|
|
${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include
|
|
|
|
.include <bsd.port.mk>
|