mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-05 11:35:01 +00:00
b7f05445c0
It has been common practice to have one or more URLs at the end of the ports' pkg-descr files, one per line and prefixed with "WWW:". These URLs should point at a project website or other relevant resources. Access to these URLs required processing of the pkg-descr files, and they have often become stale over time. If more than one such URL was present in a pkg-descr file, only the first one was tarnsfered into the port INDEX, but for many ports only the last line did contain the port specific URL to further information. There have been several proposals to make a project URL available as a macro in the ports' Makefiles, over time. This commit implements such a proposal and moves one of the WWW: entries of each pkg-descr file into the respective port's Makefile. A heuristic attempts to identify the most relevant URL in case there is more than one WWW: entry in some pkg-descr file. URLs that are not moved into the Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr files in order to preserve them. There are 1256 ports that had no WWW: entries in pkg-descr files. These ports will not be touched in this commit. The portlint port has been adjusted to expect a WWW entry in each port Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as deprecated. Approved by: portmgr (tcberner)
68 lines
2.0 KiB
Makefile
68 lines
2.0 KiB
Makefile
PORTNAME= xnee
|
|
PORTVERSION= 3.19
|
|
PORTREVISION= 2
|
|
CATEGORIES= x11
|
|
MASTER_SITES= GNU
|
|
|
|
MAINTAINER= zab@zltech.eu
|
|
COMMENT= X11 events recorder and player
|
|
WWW= http://www.sandklef.com/xnee/
|
|
|
|
LICENSE= GPLv3
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= gmake pathfix xorg
|
|
USE_XORG= x11 xtst
|
|
|
|
CONFIGURE_ARGS= --enable-cli --disable-doc --disable-xinput2
|
|
|
|
INFO= ${PORTNAME}
|
|
|
|
OPTIONS_DEFINE= GNEE
|
|
OPTIONS_SUB= yes
|
|
|
|
GNEE_DESC= GUI frontend
|
|
GNEE_CONFIGURE_ENABLE= gui
|
|
GNEE_USES= gnome pkgconfig
|
|
GNEE_USE= GNOME=gtk20
|
|
|
|
GNEE_DESKTOP_ENTRIES= "Gnee" "" "${PORTNAME}.png" \
|
|
"gnee" "Development;" true
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|$${libdir}/gnome-panel|$${prefix}/libexec|g ; \
|
|
s|$${libdir}/bonobo/|$${prefix}/libdata/bonobo/|g ; \
|
|
s|"CCC"|""|g' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e \
|
|
's|@PIXMAP_DIR@|pixmap|g ; \
|
|
s|@DOC_DIR@||g' ${WRKSRC}/Makefile.in
|
|
@${REINPLACE_CMD} -e \
|
|
's|make man|$$(MAKE) man|g' ${WRKSRC}/cnee/Makefile.in
|
|
@${REINPLACE_CMD} -e \
|
|
's|: install-docDATA|:|g' ${WRKSRC}/cnee/src/Makefile.in
|
|
@${REINPLACE_CMD} -e \
|
|
's|$$(libgnomeui_CFLAGS)||g ; \
|
|
s|$$(libgnomeui_LIBS)||g' ${WRKSRC}/gnee/src/Makefile.in
|
|
@${REINPLACE_CMD} -e \
|
|
's|src test|src|g' ${WRKSRC}/libxnee/Makefile.in
|
|
@${REINPLACE_CMD} -E 's,} (${_ENUM_NAMES:ts|}),},' \
|
|
${WRKSRC}/libxnee/include/libxnee/xnee.h \
|
|
${WRKSRC}/libxnee/include/libxnee/xnee_grab.h \
|
|
${WRKSRC}/libxnee/include/libxnee/xnee_internal.h \
|
|
${WRKSRC}/libxnee/include/libxnee/xnee_window.h
|
|
@${REINPLACE_CMD} -e \
|
|
's|^xnee_option_t|extern &|' ${WRKSRC}/cnee/src/cnee_demo.c
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/doc/xnee.info ${STAGEDIR}${PREFIX}/${INFO_PATH}
|
|
|
|
# We must trim the names from enums below to build with -fno-common
|
|
_ENUM_NAMES= _bool_string_values _cont_proc_commands _return_values \
|
|
_xnee_grab_modes _xnee_protocol_data_numbers \
|
|
_xnee_replay_backend _xnee_resolution_states \
|
|
xnee_data_types xnee_grab_modifiers_control xnee_mode \
|
|
xnee_option_type xnee_override_display xnee_window_types
|
|
|
|
.include <bsd.port.mk>
|