mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
b9398223bd
Approved by: portmgr blanket
36 lines
1.1 KiB
Makefile
36 lines
1.1 KiB
Makefile
# Created by: Koop Mast <kwm@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libvisual
|
|
PORTVERSION= 0.4.0
|
|
PORTREVISION= 6
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
|
PKGNAMESUFFIX= 04
|
|
|
|
MAINTAINER= crees@FreeBSD.org
|
|
COMMENT= Abstraction library that sits between apps and visual plugin
|
|
|
|
LICENSE= LGPL21+
|
|
|
|
USES= gettext libtool:keepla pathfix pkgconfig
|
|
GNU_CONFIGURE= yes
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -lpthread -L${LOCALBASE}/lib
|
|
USE_LDCONFIG= yes
|
|
VER= -0.4
|
|
PLIST_SUB= VER=${VER}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-Wno-unused-variable||g;s|-O3|${CFLAGS}|g' \
|
|
${WRKSRC}/libvisual/Makefile.in
|
|
@${REINPLACE_CMD} -e 's|sys/sched.h||g' -e '/test.*==/s|==|=|g' ${WRKSRC}/configure
|
|
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e 's|$$<|$${.ALLSRC}|g'
|
|
@${FIND} ${WRKSRC} -name "*.h" | ${XARGS} ${REINPLACE_CMD} \
|
|
-e 's#include <libvisual/#include <libvisual${VER}/libvisual/#'
|
|
@${MKDIR} -p ${WRKSRC}/${PORTNAME}/${PORTNAME}${VER}
|
|
@${LN} -s ${WRKSRC}/${PORTNAME} \
|
|
${WRKSRC}/${PORTNAME}/${PORTNAME}${VER}/${PORTNAME}
|
|
|
|
.include <bsd.port.mk>
|