summaryrefslogtreecommitdiff
path: root/x11-toolkits/otk/Makefile
blob: 57542f9a2297b91da44559b7fbcf0a7b8b56d98c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Created by: Igor Pokrovsky <ip@doom.homeunix.org>
# $FreeBSD$

PORTNAME=	otk
PORTVERSION=	0.96
PORTREVISION=	3
CATEGORIES=	x11-toolkits graphics
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/v${PORTVERSION}
DISTNAME=	${PORTNAME}_lib_${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Widget library based on OpenGL

LICENSE=	LGPL20+

WRKSRC=		${WRKDIR}/${PORTNAME}_lib

USES=		tar:tgz
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_LIB} ${WRKSRC}/libotk.so.0 ${STAGEDIR}${PREFIX}/lib
	${LN} -sf libotk.so.0 ${STAGEDIR}${PREFIX}/lib/libotk.so
	${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include

.include <bsd.port.mk>