freebsd-ports/x11-toolkits/otk/Makefile
Kevin Bowling da3162c7c9 graphics/mesa-libs: Bump reverse deps for libglvnd
Per discussion with bapt on helping pkg handle the changing of these
deps and avoiding impossible upgrade senarios.

PR:		246767
Reviewed by:	manu, bapt
Approved by:	x11
Differential Revision:	https://reviews.freebsd.org/D30824
2021-06-22 11:53:08 -07:00

37 lines
953 B
Makefile

# Created by: Igor Pokrovsky <ip@doom.homeunix.org>
PORTNAME= otk
PORTVERSION= 0.96
PORTREVISION= 4
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= gl tar:tgz xorg
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>