40 lines
1.2 KiB
Makefile
40 lines
1.2 KiB
Makefile
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= xsel
|
|
PORTVERSION= 1.2.0
|
|
CATEGORIES= x11
|
|
MASTER_SITES= http://www.vergenet.net/~conrad/software/xsel/download/
|
|
PKGNAMESUFFIX= -conrad
|
|
|
|
MAINTAINER= code@apotheon.net
|
|
COMMENT= Access X selection from command line
|
|
|
|
LICENSE= xsel-conrad
|
|
LICENSE_GROUPS= COPYFREE
|
|
LICENSE_NAME= xsel-conrad license
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
CONFLICTS_INSTALL= xsel-[0-9]*
|
|
USE_XORG= x11 xext xt xproto ice sm
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lXext -lX11
|
|
PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz
|
|
PORTDOCS= ChangeLog README
|
|
GNU_CONFIGURE= yes
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|jmp_buf|sigjmp_buf|g' ${WRKSRC}/xsel.c
|
|
@${REINPLACE_CMD} -e 's|@X_CFLAGS@|${CFLAGS}|;\
|
|
s|@X_LIBS@|${LDFLAGS}|' ${WRKSRC}/Makefile.in
|
|
|
|
do-install:
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
|
@${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1x ${STAGEDIR}${MAN1PREFIX}/man/man1/${PORTNAME}.1
|
|
@${INSTALL} -d ${STAGEDIR}${DOCSDIR}/
|
|
@cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
|
|
|
|
.include <bsd.port.mk>
|