diff options
author | reg <reg@FreeBSD.org> | 2000-10-05 14:57:56 +0800 |
---|---|---|
committer | reg <reg@FreeBSD.org> | 2000-10-05 14:57:56 +0800 |
commit | cea38f8422a3eeac06b3ce4a5828580a5812d2cc (patch) | |
tree | 9703d7928f2f462fdf308bf7d14164f8f8459828 /x11-toolkits/ruby-gtk/Makefile | |
parent | 4495def283d3b8c777e1eb5b958cedb25b1aa16b (diff) | |
download | freebsd-ports-gnome-cea38f8422a3eeac06b3ce4a5828580a5812d2cc.tar.gz freebsd-ports-gnome-cea38f8422a3eeac06b3ce4a5828580a5812d2cc.tar.zst freebsd-ports-gnome-cea38f8422a3eeac06b3ce4a5828580a5812d2cc.zip |
Implement WANT_IMLIB and USE_IMLIB.
Diffstat (limited to 'x11-toolkits/ruby-gtk/Makefile')
-rw-r--r-- | x11-toolkits/ruby-gtk/Makefile | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/x11-toolkits/ruby-gtk/Makefile b/x11-toolkits/ruby-gtk/Makefile index e992ce9b8c04..5a21425408b5 100644 --- a/x11-toolkits/ruby-gtk/Makefile +++ b/x11-toolkits/ruby-gtk/Makefile @@ -15,22 +15,24 @@ DIST_SUBDIR= ruby MAINTAINER= yasuf@bsdclub.org -LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} USE_RUBY= yes USE_RUBY_EXTCONF= yes - USE_XLIB= yes +USE_GTK= yes +WANT_IMLIB= yes -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -CONFIGURE_ARGS= ${GTK_CONFIG} INSTALL_TARGET= site-install -.if defined(WITHOUT_IMLIB) -GTK_CONFIG?= ${X11BASE}/bin/gtk12-config +.include <bsd.port.pre.mk> + +.if defined(HAVE_IMLIB) +USE_IMLIB= yes .else -LIB_DEPENDS+= Imlib.5:${PORTSDIR}/graphics/imlib -GTK_CONFIG?= ${X11BASE}/bin/imlib-config +PLIST= ${WRKDIR}/PLIST +pre-install: + @${SED} -e '/gdkimlib/d' ${PKGDIR}/PLIST > ${PLIST} .endif post-configure: @@ -43,7 +45,7 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/sample/*.rb ${RUBY_EXAMPLESDIR}/gtk ${MKDIR} ${RUBY_EXAMPLESDIR}/gtk/browser ${INSTALL_DATA} ${WRKSRC}/doc/*.rb ${RUBY_EXAMPLESDIR}/gtk/browser -.if !defined(NO_IMLIB) +.if defined(HAVE_IMLIB) ${MKDIR} ${RUBY_EXAMPLESDIR}/gtk/gdkimlib ${INSTALL_DATA} ${WRKSRC}/sample/gdkimlib/*.rb ${RUBY_EXAMPLESDIR}/gtk/gdkimlib .endif @@ -52,4 +54,4 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/doc/api-ja/* ${RUBY_DOCDIR}/gtk/ja .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |