Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107647811
D38785.id117978.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D38785.id117978.diff
View Options
diff --git a/editors/Makefile b/editors/Makefile
--- a/editors/Makefile
+++ b/editors/Makefile
@@ -243,6 +243,7 @@
SUBDIR += rehex
SUBDIR += retext
SUBDIR += rubygem-neovim
+ SUBDIR += sam
SUBDIR += scite
SUBDIR += se
SUBDIR += semi
diff --git a/editors/sam/Makefile b/editors/sam/Makefile
new file mode 100644
--- /dev/null
+++ b/editors/sam/Makefile
@@ -0,0 +1,46 @@
+PORTNAME= sam
+DISTVERSION= g20230103
+CATEGORIES= editors
+
+MAINTAINER= flo@purplekraken.com
+COMMENT= Unix port of the Sam text editor from Plan 9
+WWW= https://github.com/deadpixi/sam
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= xorg localbase:ldflags
+
+USE_GITHUB= yes
+GH_ACCOUNT= deadpixi
+GH_PROJECT= sam
+GH_TAGNAME= 5d8acb3
+
+USE_XORG= x11 xft xi xt
+
+# Some random build system fixes
+MAKE_JOBS_UNSAFE=yes
+CFLAGS+= -isystem ${LOCALBASE}/include/freetype2
+
+do-configure:
+ ${SED} -e 's/LDFLAGS=/LDFLAGS?=/' -e 's/CC=/CC?=/' \
+ <${WRKSRC}/config.mk.def >${WRKSRC}/config.mk
+
+do-install:
+ # this is equivalent to ${WRKSRC}/Makefile:/install/
+ ${MAKE} DESTDIR=${STAGEDIR}${PREFIX} -C ${WRKSRC}/libXg install
+ ${MAKE} DESTDIR=${STAGEDIR}${PREFIX} -C ${WRKSRC}/libframe install
+ ${MAKE} DESTDIR=${STAGEDIR}${PREFIX} -C ${WRKSRC}/sam install
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sam
+ ${MAKE} DESTDIR=${STAGEDIR}${PREFIX} -C ${WRKSRC}/samterm install
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/samterm
+ ${MAKE} DESTDIR=${STAGEDIR}${PREFIX} -C ${WRKSRC}/ssam install
+ # this is equivalent to ${WRKSRC}/doc/Makefile:/install/
+ ${INSTALL} ${WRKSRC}/doc/sam.1 ${STAGEDIR}${PREFIX}/share/man/man1
+ ${RLN} ${STAGEDIR}${PREFIX}/share/man/man1/sam.1 ${STAGEDIR}${PREFIX}/share/man/man1/B.1
+ ${RLN} ${STAGEDIR}${PREFIX}/share/man/man1/sam.1 ${STAGEDIR}${PREFIX}/share/man/man1/samterm.1
+ ${RLN} ${STAGEDIR}${PREFIX}/share/man/man1/sam.1 ${STAGEDIR}${PREFIX}/share/man/man1/rsam.1
+ ${RLN} ${STAGEDIR}${PREFIX}/share/man/man1/sam.1 ${STAGEDIR}${PREFIX}/share/man/man1/sam.save.1
+ ${INSTALL} ${WRKSRC}/doc/samrc.5 ${STAGEDIR}${PREFIX}/share/man/man5
+
+.include <bsd.port.mk>
diff --git a/editors/sam/distinfo b/editors/sam/distinfo
new file mode 100644
--- /dev/null
+++ b/editors/sam/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1672738941
+SHA256 (deadpixi-sam-g20230103-5d8acb3_GH0.tar.gz) = 70781f60d2cf7212b9d563cf22c819e68699d5d536bea66927a33009b556f5d1
+SIZE (deadpixi-sam-g20230103-5d8acb3_GH0.tar.gz) = 312329
diff --git a/editors/sam/pkg-descr b/editors/sam/pkg-descr
new file mode 100644
--- /dev/null
+++ b/editors/sam/pkg-descr
@@ -0,0 +1,5 @@
+Sam is a text editor originally written for the Blit graphical terminal
+connected to a machine running 9th Edition Research Unix. It contained many
+useful innovations, the most famous of which was its use of structural regular
+expressions. This version of sam is based on that 1990s Unix port, with many
+useful additions and modifications.
diff --git a/editors/sam/pkg-plist b/editors/sam/pkg-plist
new file mode 100644
--- /dev/null
+++ b/editors/sam/pkg-plist
@@ -0,0 +1,10 @@
+bin/B
+bin/sam
+bin/samterm
+bin/ssam
+share/man/man1/B.1.gz
+share/man/man1/rsam.1.gz
+share/man/man1/sam.1.gz
+share/man/man1/sam.save.1.gz
+share/man/man1/samterm.1.gz
+share/man/man5/samrc.5.gz
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 18, 3:12 AM (10 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15849504
Default Alt Text
D38785.id117978.diff (3 KB)
Attached To
Mode
D38785: [NEW PORT] editors/sam: Add the sam text editor
Attached
Detach File
Event Timeline
Log In to Comment