- add a working distsite
- ldconfig -> DYNLIBDIR - use PFRAG.shared for shared libs - add @comment with RCS id to PLISTs - add HOMEPAGE to DESCR - have install make relative symlinks
This commit is contained in:
parent
67691f38ff
commit
7330e34707
@ -1,12 +1,24 @@
|
||||
# $OpenBSD: Makefile,v 1.11 2000/03/25 13:39:26 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.12 2000/09/13 04:04:02 brad Exp $
|
||||
|
||||
ONLY_FOR_ARCHS= i386 sparc m68k hp300
|
||||
|
||||
.if (${MACHINE_ARCH} == "hp300")
|
||||
XFORMS_ARCH= m68k
|
||||
.else
|
||||
XFORMS_ARCH= ${MACHINE_ARCH}
|
||||
.endif
|
||||
|
||||
DISTNAME= bxform-088
|
||||
PKGNAME= xforms-0.88
|
||||
WRKDIST= ${WRKDIR}/xforms
|
||||
CATEGORIES= x11
|
||||
NEED_VERSION= 1.227
|
||||
MASTER_SITES= ftp://bragg.phys.uwm.edu/pub/xforms/%SUBDIR%/
|
||||
NEED_VERSION= 1.320
|
||||
MASTER_SITES= ftp://ftp.via.ecp.fr/pub1/xforms/%SUBDIR%/
|
||||
MASTER_SITE_SUBDIR= openBSD-${XFORMS_ARCH}
|
||||
EXTRACT_SUFX= .tgz
|
||||
DIST_SUBDIR= xforms/${MASTER_SITE_SUBDIR}
|
||||
|
||||
HOMEPAGE= http://world.std.com/~xforms/
|
||||
|
||||
MAINTAINER= ports@openbsd.org
|
||||
|
||||
# I asked the author and I got permission (OpenBSD is a similar enough case
|
||||
@ -16,28 +28,17 @@ PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
.if (${MACHINE_ARCH} == "hp300")
|
||||
XFORMS_ARCH= m68k
|
||||
.else
|
||||
XFORMS_ARCH= ${MACHINE_ARCH}
|
||||
.endif
|
||||
|
||||
MASTER_SITE_SUBDIR= openBSD-${XFORMS_ARCH}
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
ONLY_FOR_ARCHS= i386 sparc m68k hp300
|
||||
|
||||
DIST_SUBDIR= xforms/${MASTER_SITE_SUBDIR}
|
||||
FAKE_FLAGS= PREFIX="${PREFIX}" DESTDIR="${WRKINST}"
|
||||
|
||||
## Define OBJMACHINE so WRKDIR is defined to be ${MACHINE_ARCH}-specific.
|
||||
OBJMACHINE= Yes
|
||||
NO_BUILD= Yes
|
||||
USE_X11= Yes
|
||||
FAKE= Yes
|
||||
FAKE_FLAGS= PREFIX=${PREFIX} DESTDIR=${WRKINST}
|
||||
|
||||
WRKDIST= ${WRKDIR}/xforms
|
||||
|
||||
post-patch:
|
||||
mv ${WRKSRC}/mkconfig.h ${WRKSRC}/mkconfig.h.orig
|
||||
cp ${FILESDIR}/mkconfig.h ${WRKSRC}
|
||||
@mv -f ${WRKSRC}/mkconfig.h ${WRKSRC}/mkconfig.h.orig
|
||||
@cp -f ${FILESDIR}/mkconfig.h ${WRKSRC}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- Makefile.orig Sat Nov 15 05:08:26 1997
|
||||
+++ Makefile Fri Mar 24 02:22:35 2000
|
||||
--- Makefile.orig Fri Nov 14 23:48:20 1997
|
||||
+++ Makefile Tue Sep 12 23:38:39 2000
|
||||
@@ -25,24 +25,27 @@
|
||||
@(cd DEMOS; make)
|
||||
|
||||
@ -7,20 +7,22 @@
|
||||
- cp FORMS/$(FORMLIB) $(LIB_DIR);chmod $(LIBMODE) $(LIB_DIR)/$(FORMLIB)
|
||||
- cp DESIGN/fdesign $(BIN_DIR); chmod $(BINMODE) $(BIN_DIR)/fdesign
|
||||
- cp fd2ps/fd2ps $(BIN_DIR); chmod $(BINMODE) $(BIN_DIR)/fd2ps
|
||||
- -@if [ "$(SHARED_LIB)" != "" ]; then\
|
||||
- cp FORMS/$(SHARED_LIB) $(LIB_DIR); \
|
||||
- chmod $(LIBMODE) $(LIB_DIR)/$(SHARED_LIB);\
|
||||
- if [ "$(SHARED_NAME)" != "" ]; then\
|
||||
- $(LN) $(LIB_DIR)/$(SHARED_LIB) $(LIB_DIR)/$(SHARED_NAME);\
|
||||
+ ${BSD_INSTALL_DATA} FORMS/$(FORMLIB) $(DESTDIR)$(LIB_DIR)
|
||||
+ $(RANLIB) $(DESTDIR)$(LIB_DIR)/$(FORMLIB)
|
||||
+ if [ "$(STATIC_NAME)" != "" ]; then\
|
||||
+ $(LN) $(LIB_DIR)/$(FORMLIB) $(DESTDIR)$(LIB_DIR)/$(STATIC_NAME);\
|
||||
+ if [ "$(STATIC_NAME)" != "" ]; then \
|
||||
+ cd $(DESTDIR)$(LIB_DIR) && $(LN) $(FORMLIB) $(STATIC_NAME); \
|
||||
+ fi
|
||||
+ ${BSD_INSTALL_PROGRAM} DESIGN/fdesign $(DESTDIR)$(BIN_DIR)
|
||||
+ ${BSD_INSTALL_PROGRAM} fd2ps/fd2ps $(DESTDIR)$(BIN_DIR)
|
||||
-@if [ "$(SHARED_LIB)" != "" ]; then\
|
||||
- cp FORMS/$(SHARED_LIB) $(LIB_DIR); \
|
||||
- chmod $(LIBMODE) $(LIB_DIR)/$(SHARED_LIB);\
|
||||
+ -@if [ "$(SHARED_LIB)" != "" ]; then \
|
||||
+ ${BSD_INSTALL_DATA} FORMS/$(SHARED_LIB) $(DESTDIR)$(LIB_DIR); \
|
||||
if [ "$(SHARED_NAME)" != "" ]; then\
|
||||
- $(LN) $(LIB_DIR)/$(SHARED_LIB) $(LIB_DIR)/$(SHARED_NAME);\
|
||||
+ $(LN) $(LIB_DIR)/$(SHARED_LIB) $(DESTDIR)$(LIB_DIR)/$(SHARED_NAME);\
|
||||
+ if [ "$(SHARED_NAME)" != "" ]; then \
|
||||
+ cd $(DESTDIR)$(LIB_DIR) && $(LN) $(SHARED_LIB) $(SHARED_NAME); \
|
||||
fi \
|
||||
fi
|
||||
- cp FORMS/$(FORMHEADER) $(HEADER_DIR);\
|
||||
@ -34,8 +36,8 @@
|
||||
+ ${BSD_INSTALL_MAN} FORMS/xforms.5 $(DESTDIR)$(MAN5_DIR)
|
||||
+ ${BSD_INSTALL_MAN} DESIGN/fdesign.1 $(DESTDIR)$(MAN1_DIR)
|
||||
+ ${BSD_INSTALL_MAN} fd2ps/fd2ps.1 $(DESTDIR)$(MAN1_DIR)
|
||||
+ @if [ ! -f $(DESTDIR)$(MAN5_DIR)/forms.5 ]; then\
|
||||
+ $(LN) $(MAN5_DIR)/xforms.5 $(DESTDIR)$(MAN5_DIR)/forms.5;\
|
||||
+ @if [ ! -f $(DESTDIR)$(MAN5_DIR)/forms.5 ]; then \
|
||||
+ cd $(DESTDIR)$(MAN5_DIR) && $(LN) xforms.5 forms.5; \
|
||||
fi
|
||||
+
|
||||
clean:
|
||||
|
@ -1,8 +1,4 @@
|
||||
This is the binary distribution of XForms, a graphical user interface
|
||||
toolkit for X Window Systems. It should work under X11 R4, R5 & R6.
|
||||
|
||||
Documentation on XForms is available from bragg.phys.uwm.edu /pub/xforms
|
||||
via anonymous ftp.
|
||||
|
||||
The entire XForms distribution is also accessible via
|
||||
http://bloch.phys.uwm.edu/xforms
|
||||
WWW: ${HOMEPAGE}
|
||||
|
4
x11/xforms/pkg/PFRAG.shared
Normal file
4
x11/xforms/pkg/PFRAG.shared
Normal file
@ -0,0 +1,4 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.1 2000/09/13 04:04:03 brad Exp $
|
||||
lib/libforms.so.0.88
|
||||
lib/libxforms.so.0.88
|
||||
DYNLIBDIR(%B)
|
@ -1,13 +1,10 @@
|
||||
@comment $OpenBSD: PLIST,v 1.3 2000/09/13 04:04:03 brad Exp $
|
||||
bin/fd2ps
|
||||
bin/fdesign
|
||||
include/X11/forms.h
|
||||
lib/libforms.a
|
||||
@exec ln -sf %D/%F %D/lib/libxforms.a
|
||||
@unexec rm -f %D/lib/libxforms.a
|
||||
lib/libforms.so.0.88
|
||||
@exec ln -sf %D/%F %D/lib/libxforms.so.0.88
|
||||
@unexec rm -f %D/lib/libxforms.so.0.88
|
||||
@exec if [ -x /sbin/ldconfig ]; then /sbin/ldconfig -m; fi
|
||||
lib/libxforms.a
|
||||
%%SHARED%%
|
||||
man/man1/fd2ps.1
|
||||
man/man1/fdesign.1
|
||||
man/man5/forms.5
|
||||
|
Loading…
Reference in New Issue
Block a user