link gnugetopt statically.

This commit is contained in:
FUJISHIMA Satsuki 2003-07-14 02:37:55 +00:00
parent f689ded903
commit 51de64b4e7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=84839
2 changed files with 26 additions and 8 deletions

View file

@ -7,28 +7,30 @@
PORTNAME= xstroke PORTNAME= xstroke
PORTVERSION= 0.5.12 PORTVERSION= 0.5.12
PORTREVISION= 2 PORTREVISION= 3
CATEGORIES= x11 CATEGORIES= x11
MASTER_SITES= ftp://ftp.handhelds.org/pub/projects/xstroke/release-${PORTVERSION:R}/ MASTER_SITES= ftp://ftp.handhelds.org/pub/projects/xstroke/release-${PORTVERSION:R}/
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= Fullscreen gesture recognition COMMENT= Fullscreen gesture recognition
LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt \ LIB_DEPENDS= Xft.2:${PORTSDIR}/x11-fonts/Xft
Xft.2:${PORTSDIR}/x11-fonts/Xft PATCH_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/devel/libgnugetopt:extract
USE_REINPLACE= yes USE_REINPLACE= yes
USE_BISON= yes USE_BISON= yes
USE_IMAKE= yes USE_IMAKE= yes
CFLAGS+= ${PTHREAD_CFLAGS} CFLAGS+= ${PTHREAD_CFLAGS}
CPPFLAGS+= -I${LOCALBASE}/include CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lgnugetopt ${PTHREAD_LIBS} LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
MAKE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" MAKE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
GETOPTDIR!= cd ${PORTSDIR}/devel/libgnugetopt; make -V WRKSRC
MAN1= xstroke.1 MAN1= xstroke.1
post-patch: post-patch:
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/etc/Imakefile @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/etc/Imakefile
@${REINPLACE_CMD} -e "s,etc/,${PREFIX}/etc/,g" ${WRKSRC}/args.h @${REINPLACE_CMD} -e "s,etc/,${PREFIX}/etc/,g" ${WRKSRC}/args.h
${CP} ${GETOPTDIR}/getopt* ${WRKSRC}
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -1,6 +1,6 @@
--- Imakefile.orig Mon Dec 10 14:17:11 2001 --- Imakefile.orig Tue Dec 11 07:17:11 2001
+++ Imakefile Mon May 12 14:55:25 2003 +++ Imakefile Sat Jul 12 08:41:37 2003
@@ -1,9 +1,10 @@ @@ -1,21 +1,24 @@
#define IHaveSubdirs #define IHaveSubdirs
SUBDIRS=etc SUBDIRS=etc
-CDEBUGFLAGS=-g -ansi -ansi-error -Wall -pedantic -CDEBUGFLAGS=-g -ansi -ansi-error -Wall -pedantic
@ -13,3 +13,19 @@
OBJS=xstroke.o args.o backing.o bresenham.o brush.o control_win.o stroke.o matrix.o \ OBJS=xstroke.o args.o backing.o bresenham.o brush.o control_win.o stroke.o matrix.o \
action.o action_item.o feature.o gesture.o log.o option.o sprintf_alloc.o \ action.o action_item.o feature.o gesture.o log.o option.o sprintf_alloc.o \
rec.o rec_callback.o rec_history.o rec_lex.o rec_mode.o rec_parse.o \ rec.o rec_callback.o rec_history.o rec_lex.o rec_mode.o rec_parse.o \
rec_engine.o grid.o regex_feature.o fixed.o \
anchor_engine.o dir_engine.o grid_engine.o raw_engine.o \
- xlp.o xlp_callback.o xlp_color.o xlp_timeout.o xlp_win.o
+ xlp.o xlp_callback.o xlp_color.o xlp_timeout.o xlp_win.o \
+ getopt.o getopt1.o
SRCS=xstroke.c args.c backing.c bresenham.c brush.c control_win.c stroke.c matrix.c \
action.c action_item.c feature.c gesture.c log.c option.c sprintf_alloc.c \
rec.c rec_callback.c rec_history.c rec_mode.c \
rec_engine.c grid.c regex_feature.c fixed.c \
anchor_engine.c dir_engine.c grid_engine.c raw_engine.c \
- xlp.c xlp_callback.c xlp_color.c xlp_timeout.c xlp_win.c
+ xlp.c xlp_callback.c xlp_color.c xlp_timeout.c xlp_win.c \
+ getopt.c getopt1.c
ComplexProgramTarget(xstroke)